ggplot,FLQuant-method | R Documentation |
The ggplot()
method has been conveniently overloaded for various
FLR classes. A call to as.data.frame
takes place on data
before passing all arguments to the original ggplot
function.
## S4 method for signature 'FLQuant'
ggplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
## S4 method for signature 'FLQuants'
ggplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
## S4 method for signature 'FLComp'
ggplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
## S4 method for signature 'FLComps'
ggplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
## S4 method for signature 'FLPar'
ggplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
data |
An |
mapping |
An aesthetic mapping, from a call to |
... |
Other arguments to be passod on to |
environment |
Where to look for an undefined plot variable. |
Please look at the relevant as.data.frame
method for each class to
understand the naming conventions used in the resulting data.frame
ggplot, https://github.com/flr/ggplotFL/
dat <- rnorm(1, FLQuant(1, dim=c(5,10)), 0.5)
ggplot(data=dat, aes(data, year)) + geom_point()
data(ple4)
dat <- FLQuants(catch=catch(ple4), ssb=ssb(ple4))
ggplot(data=dat, aes(data, year)) + geom_point() + facet_wrap(~qname)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.