ggcontour | R Documentation |
Wrapper to create geom_contour of a function
ggcontour(x, y, f)
x , y |
Vectors defining the x and y axis |
f |
The function to plot |
A gg
object
x <- y <- seq(-10, 10, 0.1)
f <- function(x, y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r }
ggcontour(x, y, f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.