setActiveColorScheme {Rggobi} | R Documentation |
This makes a particular color scheme active within a GGobi instance or sets the default active color scheme in the session options for use in new GGobi instances created after this call.
setActiveColorScheme(id, .gobi=NULL)
id |
an identifier for the desired color scheme that is to be made active. This is usually the name of the scheme. Alternatively it can be an integer value that specifies the scheme by index in the list of color schemes. |
.gobi |
the GGobi instance to which this scheme is to be active,
or if NULL , sets it in the GGobi session options.
In this case, the subsequently created GGobi instances will use this
value as their initial color scheme. |
The name of the previously active color scheme. This can be used to restore the previous setting.
Duncan Temple Lang
addColorScheme
getColorSchemes
g <- ggobi(system.file("data", "flea.xml", package="Rggobi")) schemes <- getColorSchemes(.gobi = g) setActiveColorScheme(names(schemes)[1], g)