Function for a default lineplot ggplot that can be used to
nested data to some default plots. The base plot can be appended with
ggplot::geom_point for example to create a scatterplot.
NOTE that this function expects the
plotCols as opposed
to other PhenoDb plotting functions!
1 2 3
A data.frame with values to plot
Title of the plot
A named list of plot settings
plotCols list must be named with at least
Column name of values on the X-axis
Column name of values on the y-axis
Column name of values to color by
Column name to group lines by (like Subjects)
Optionally, you can also add facets,
Column name of vertical facets
Column name of horizontal facets
ggplot object without any
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.