Description Usage Arguments Examples
Make command and plotn object consist of plotn and overdraw to store a figure as a object
1 | plotn_object(..., insert = NULL, delete = NULL)
|
... |
plotn command or plotn object |
insert |
position of insert layer. If set nunber i, second and later arguments are inserted in i th layer in a first argument |
delete |
position of delete layer. If set nunber i, i th layers in a first argument are deleted. If both insert and delete are set number, deleting is done before inserting. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | n1 <- plotn_object(plotn(1:50),
overdraw(abline(v = 30), abline(h = 20),
points(1:10 + 1, 10:1))
)
n1
d <- data.frame(x = c(1:10, 11:20, 21:30, 31:40),
group = rep(c("A","B","A", "B"), each = 10),
treatment = rep(c("X","Y"), each = 20))
n2 <- plotn_object(boxplotn(x ~ group + treatment, data = d, xaxt = "n",
xlab = "", mar = c(3.8, 3.8, 1, 1)),
overdraw(category_axis(main = "treatment",
sub = "group",data = d))
)
n2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.