I have a contour plot in ggplot2 that I want to map to a single point.
My outline graph is as follows:
v = ggplot(pts, aes(theta_1, theta_2, z = z)) v + stat_contour(aes(colour = ..level..),bins=50) + xlab(expression(Theta[1])) + ylab(expression(Theta[2]))
and I have a point that looks like this:
p = ggplot(ts,aes(x,y)) p + geom_point()
Unfortunately, the second one overwrites the first.
Is there a way to make them appear on the same plot, similar to MATLAB "hold on" ,?
Thanks!
source share