powered by
Create a line plot using the aelab theme.
plot_line( df, x, y, z = NULL, base_size = 25, line_width = 3, text_color = "black", facet = FALSE, facet_x = NULL, facet_y = NULL, style = "bw" )
A ggplot object.
ggplot
A data frame.
<[`data-masking`][ggplot2::aes]> Column mapped to the x-axis.
<[`data-masking`][ggplot2::aes]> Column mapped to the y-axis.
<[`data-masking`][ggplot2::aes]> Optional column mapped to colour and group.
Base font size. Default 25.
Line width. Default 3.
Text colour. Default "black".
"black"
Logical; add facet grid? Default FALSE.
FALSE
Column name (string) for the horizontal facet dimension.
Column name (string) for the vertical facet dimension.
Theme style. Default "bw".
"bw"
if (FALSE) { df <- data.frame(x = 1:6, y = c(1,3,2,5,4,6), g = rep(c("A","B"), 3)) plot_line(df, x, y, g) }
Run the code above in your browser using DataLab