trelliBasePlot: Trelliscope boxplot function

Description Usage Arguments Details Value See Also

Description

Function for a default boxplot ggplot that can be used to dplyr::map nested data to some default plots. The base plot can be appended with ggplot::geom_point for example to create a scatterplot.

Usage

1
2
3
4
5
trelliBasePlot(df, title = NULL, subtitle = NULL, x = "AbsTime",
  y = "Value", color = NULL, fill = NULL, facet1 = NULL,
  facet2 = NULL, plottheme = c("default", "bw", "tufte", "economist",
  "stata", "wsj", "highchart", "fivethirtyeight"), na_levels = c("remove",
  "keep"))

Arguments

df

A data.frame with values to plot

title

Title of the plot

fill

Details

The plotCols list must be named with at least

x

Column name of values on the X-axis

y

Column name of values on the y-axis

color

Column name of values to color by

Optionally, you can also add facets,

facet1

Column name of vertical facets

facet2

Column name of horizontal facets

Value

A ggplot object without any geom

See Also

Other PhenoDb Plotting: mapBasePlot, mapBoxPlot, mapLinePlot, mapScatterPlot


Lodewic/accomodation-recommendation documentation built on Oct. 27, 2018, 12:12 a.m.