Description Usage Arguments Details Value Examples
View source: R/plot_my_legend.R
The function accepts a vector with two labels for the legend. We want to try to use special characters (subscripts, ...) with 'expression'
1 | plot_my_data(legend_labels, n = 10)
|
legend_labels |
The labels for the two groups as a vector of lenght two |
n |
(10) Number of data points per group |
The function creates data with the three columns 'x', 'y' and 'group'
A 'ggplot2'-object to print
1 2 3 | lab <- c("A", "B")
p <- exprLegend::plot_my_data(legend_labels = lab)
print(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.