plot_scalar_boxplot(data, x, y, horiz = NULL, horiz2 = NULL, vert = NULL,
vert2 = NULL, relative.error = FALSE, axes.free = TRUE, print = TRUE)
get_results_all
.horiz
) and second (horiz2
) level of faceting in
the horizontal direction. E.g. "M" or "species". A value of NULL (default)
indicates no faceting.vert
) and second (vert2
) level of faceting in
the vertical direction. E.g. "M" or "species". A value of NULL (default)
indicates no faceting.TRUE
, ylim
is set to
c(-1,1)
, the y axis label is changed automatically, and a
red line at y=0 is added.facet_grid
.ggplot
object, but
also return it invisibly for saving or printing again later.aes_string
function within data
.Note that there are some subtle differences between the
functions. Scalar plots require a value for x
, while for ts plots
x
is invalid because it is fixed internally as 'year', since it
makes no sense to use another column. Boxplots cannot have a color
mapped to them like points or lines, and thus color
is not a
valid argument. The ts point and line plots are grouped internally by
'ID', which is a combination of scenario and replicate.
scalar_dat$depletion <- with(scalar_dat,
(depletion_om - depletion_em) / depletion_om)
plot_scalar_boxplot(scalar_dat, x = "E", y = "depletion", horiz = "D",
relative.error = TRUE)
Run the code above in your browser using DataLab