The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The intention of this vignette is to show how to plot different
styles of contour plot using the BCEA package and the
contour()
and contour2()
functions.
To calculate these in BCEA we use the bcea()
function.
The plot defaults to base R plotting. Type of plot can be set
explicitly using the graph
argument.
User-defined contour levels can be provided. The levels
and nlevels
arguments specify the quantiles or number of
levels. The base R levels arguments are kept for back-compatibility and
the ggplot2
style arguments are used in the associated
plot.
Other plotting arguments can be specified such as title, line colour and thickness and type of point.
contour(he,
graph = "ggplot2",
title = "my title",
point = list(color = "blue", shape = 2, size = 5),
contour = list(size = 2))
contour(he,
graph = "base",
title = "my title",
point = list(color = "blue", shape = 2, size = 2),
contour = list(size = 2))
Alternatively, the contour2()
function is essentially a
wrapper for ceplane.plot()
with the addition of contour
lines.
Other plotting arguments can be specified in exactly the same way as above.
This situation is when there are more than two interventions to consider.
Because there are multiple groups then the quadrant annotation is omitted.
The scale
argument determines the smoothness of the
contours.
The quantiles or number of levels.
contour(he,
graph = "ggplot2",
title = "my title",
line = list(color = "red", size = 1),
point = list(color = c("plum", "tomato", "springgreen"), shape = 3:5, size = 2),
icer = list(color = c("red", "orange", "black"), size = 5),
contour = list(size = 2))
contour(he,
graph = "base",
title = "my title",
line = list(color = "red", size = 1),
point = list(color = c("plum", "tomato", "springgreen"), shape = 3:5, size = 2),
icer = list(color = c("red", "orange", "black"), size = 5),
contour = list(size = 4))
Again, this applies to the contour2()
version of contour
plot too.
The styling of the plot for multiple comparisons can specifically change the colour and point type for each comparison.
contour2(he, wtp = 250,
graph = "ggplot2",
title = "my title",
line = list(color = "red", size = 1),
point = list(color = c("plum", "tomato", "springgreen"), shape = 3:5, size = 2),
icer = list(color = c("red", "orange", "black"), size = 5),
contour = list(size = 2))
contour2(he, wtp = 250,
graph = "base",
title = "my title",
line = list(color = "red", size = 1),
point = list(color = c("plum", "tomato", "springgreen"), shape = 3:5, size = 2),
icer = list(color = c("red", "orange", "black"), size = 5),
contour = list(size = 4))
Reposition legend.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.