contour | R Documentation |
This is a wrapper for R's contour function. See R's documentation for graphics::contour for further details.
contour(
x = seq(0, 1, length.out = nrow(z)),
y = seq(0, 1, length.out = ncol(z)),
z,
Rcss = "default",
Rcssclass = NULL,
...
)
x |
numeric vector; locations of grid lines |
y |
numeric vector; locations of grid lines |
z |
matrix of values |
Rcss |
style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle() |
Rcssclass |
character, style class |
... |
Further parameters, see documentation of graphics::contour |
# draw a complete contour plot
dataset <- outer(1:10, 1:10)
contour(z=dataset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.