is.gsplot | R Documentation |
Checks to see whether the object is valid for gsplot.
is.gsplot(object)
object |
gsplot object |
Checks to see that the class of the object is gsplot
, and
that there is only one par
arguement in the object list.
gs <- gsplot() %>%
points(x=1:5, y=1:5, legend.name="Stuff") %>%
lines(2:6, y=2:6, xlim=c(0,10), ylim=c(0,10)) %>%
lines(x=c(1.5,6), y=c(9,3), col="blue") %>%
axis(side=c(3,4),labels=FALSE) %>%
legend("topright")
gs
is.gsplot(gs)
gs <- gsplot() %>%
par(col.axis="red") %>%
points(y=c(3,1,2), x=1:3, xlim=c(0,NA),ylim=c(0,NA),
col="blue", pch=18, legend.name="Points", xlab="Index") %>%
axis(side=c(3,4), labels=FALSE) %>%
par(las=2)
gs
is.gsplot(gs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.