Description Usage Arguments Value
View source: R/exposure_related_functions.R
Plot exposures in multiple plots each with a manageable number of samples to PDF
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | PlotExposureToPdf(
exposure,
file,
mfrow = c(2, 1),
mar = c(6, 4, 3, 2),
oma = c(3, 2, 0, 2),
samples.per.line = 30,
plot.proportion = FALSE,
xlim = NULL,
ylim = NULL,
legend.x = NULL,
legend.y = NULL,
cex.legend = 0.9,
cex.yaxis = 1,
cex.xaxis = NULL,
plot.sample.names = TRUE,
yaxis.labels = NULL,
width = 8.2677,
height = 11.6929,
...
)
|
exposure |
Exposures as a numerical |
file |
The name of the PDF file to be produced. |
mfrow |
A vector of the form |
mar |
A numerical vector of the form |
oma |
A vector of the form |
samples.per.line |
Number of samples to show in each plot. |
plot.proportion |
Plot exposure proportions rather than counts. |
xlim, ylim |
Limits for the x and y axis. If |
legend.x, legend.y |
The x and y co-ordinates to be used to position the legend. |
cex.legend |
A numerical value giving the amount by which legend plotting text and symbols should be magnified relative to the default. |
cex.yaxis |
A numerical value giving the amount by which y axis values should be magnified relative to the default. |
cex.xaxis |
A numerical value giving the amount by which x axis values
should be magnified relative to the default. If
|
plot.sample.names |
Whether to plot sample names below the x axis. Default is TRUE. |
yaxis.labels |
User defined y axis labels to be plotted. If
|
width, height |
The width and height of the graphics region in inches. |
... |
Other arguments passed to |
An invisible list whose first element is a logic value indicating whether the plot is successful. The second element is a numeric vector giving the coordinates of all the bar midpoints drawn, useful for adding to the graph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.