gsplot | R Documentation |
Used to change the class of inputs to "gsplot".
gsplot(x = NULL, ...)
## Default S3 method:
gsplot(..., created = Sys.Date(),
gsplot.version = packageDescription(getPackageName(), fields = "Version"),
config.file = NA, theme = NA, frame.plot = TRUE)
## S3 method for class 'list'
gsplot(x)
x |
list |
... |
Further graphical parameters may also be supplied as arguments. See 'Details'. |
created |
vector of length one giving the date the gsplot object was created. Defaults to
using |
gsplot.version |
vector of length one giving the version of the gsplot package used to create the
object. Defaults to calling |
config.file |
path to the file that will only be used for setting
par in this one gsplot object. If |
theme |
There are several built in themes (see Themes). Additionally, the user can create a |
frame.plot |
a logical indicating whether a box should be drawn around the plot. Default is |
gsplot
gsplot()
gsplot(theme = theme.hadley)
gs_config <- gsplot(config.file =
system.file("extdata", "lineScatter.yaml", package = "gsplot")) %>%
lines(1:10, 1:10)
gs_config
gs <- gsplot(theme = theme.hadley) %>%
points(1:10, 1:10, xlab="Index")
gs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.