geom_worm | R Documentation |
A geom for adding worms to probability intervals from geom_flquantiles
geom_worm(
data,
mapping = aes(colour = iter),
...,
stat = "identity",
position = "identity",
na.rm = FALSE
)
data |
Subset of data, select from full object using iter(). |
mapping |
Set of aesthetic mappings created by |
... |
Other arguments passed on to |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
na.rm |
If |
'geom_worm' understands the following aesthetics (required aesthetics are in bold): - 'colour' - 'linetype' - 'linewidth'
data(ple4)
x <- rlnorm(200, log(catch(ple4)), 0.3)
plot(x) + geom_worm(data=iter(x, 1:4))
x <- FLQuants(C=rlnorm(200, log(catch(ple4)), 0.3),
F=rlnorm(200, fbar(ple4), 0.2))
plot(x) + geom_worm(data=iter(x, 1:4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.