plot_my_data: Plot with customized labels in the legend

Description Usage Arguments Details Value Examples

View source: R/plot_my_legend.R

Description

The function accepts a vector with two labels for the legend. We want to try to use special characters (subscripts, ...) with 'expression'

Usage

1
plot_my_data(legend_labels, n = 10)

Arguments

legend_labels

The labels for the two groups as a vector of lenght two

n

(10) Number of data points per group

Details

The function creates data with the three columns 'x', 'y' and 'group'

Value

A 'ggplot2'-object to print

Examples

1
2
3
lab <- c("A", "B")
p <- exprLegend::plot_my_data(legend_labels = lab)
print(p)

tinu-schneider/exprLegend documentation built on May 7, 2019, 9:34 a.m.