Canvas | R Documentation |
This is just a wrapper for creating an empty plot with suitable defaults for plotting geometric shapes.
Canvas(xlim = NULL, ylim = xlim, main = NULL, xpd = par("xpd"),
mar=c(5.1,5.1,5.1,5.1), asp = 1, bg = par("bg"), usrbg = "white", ...)
xlim , ylim |
the xlims and ylims for the plot. Default is c(-1, 1). |
xpd |
expand drawing area, defaults to |
main |
the main title on top of the plot. |
mar |
set margins. Defaults to c(5.1,5.1,5.1,5.1). |
asp |
numeric, giving the aspect ratio y/x. (See |
bg |
the background color of the plot, defaults to par("bg"), which usually will be "white". |
usrbg |
the color of the user space of the plot, defaults to "white". |
... |
additional arguments are passed to the |
The plot is created with these settings:
asp = 1, xaxt = "n", yaxt = "n", xlab = "", ylab = "", frame.plot = FALSE
.
a list of all the previous values of the parameters changed (returned invisibly)
Andri Signorell <andri@signorell.net>
Canvas(7)
text(0, 0, "Hello world!", cex=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.