Description Usage Arguments Examples
View source: R/MarkdownReportsDev.R
Create and save strip charts as .pdf, in "OutDir". If mdlink = TRUE, it inserts a .pdf and a .png link in the markdown report, set by "path_of_report". The .png version is not created, only the link is put in place, not to overwrite previous versions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | wstripchart(
yourlist,
main = as.character(substitute(yourlist)),
sub = NULL,
ylab = "",
BoxPlotWithMean = FALSE,
border = 1,
incrBottMarginBy = 0,
tilted_text = FALSE,
metod = "jitter",
jitter = 0.3,
pch = 18,
pchlwd = 1,
cex.lab = 1,
pchcex = 1.5,
bg = "seagreen2",
colorbyColumn = TRUE,
col = if (colorbyColumn) 1:length(yourlist) else 1,
savefile = unless.specified("b.save.wplots"),
w = unless.specified("b.defSize", 7),
h = w,
mdlink = ww.set.mdlink(),
PNG = unless.specified("b.usepng", F),
...
)
|
yourlist |
Input list to be plotted. |
main |
Title of the plot (main parameter) and also the name of the file. |
sub |
Subtitle below the plot. |
ylab |
Y axis label |
BoxPlotWithMean |
Display the mean instead of the median in a boxplot. This is non-standard use of a boxplot, report it. |
border |
An optional vector of colors for the outlines of the boxplots. The values in border are recycled if the length of border is less than the number of plots. |
incrBottMarginBy |
Increase the blank space at the bottom of the plot. Use if labels do not fit on the plot. |
tilted_text |
Use 45 degree x-labels if TRUE. Useful for long, but not too many labels. |
metod |
Method for displaying data points to avoid overlap; either"jitter" or "stack". See stripchart(). |
jitter |
The amount of horizontal scatter added to the individual data points (to avoid overlaps). |
pch |
Define the symbol for each data point. A number 0-25 or any string between ""-s. |
pchlwd |
Define the outline width of the symbol for each data point. |
cex.lab |
Cex for labels |
pchcex |
Define the size of the symbol for each data point. |
bg |
Background color. |
colorbyColumn |
Color each box by a simple background color? TRUE by default. |
col |
Color of the plot. |
savefile |
Save plot as pdf in OutDir, TRUE by default. |
w |
Width of the saved pdf image, in inches. |
h |
Height of the saved pdf image, in inches. |
mdlink |
Insert a .pdf and a .png image link in the markdown report, set by "path_of_report". |
PNG |
Set to true if you want to save the plot as PNG instead of the default PDF. |
... |
Pass any other parameter of the corresponding plotting function(most of them should work). |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.