mlspTimeSeriesScatter: Make a time series scatterplot

Description Usage Arguments Details Value Examples

View source: R/GraphFunctions.R

Description

mlspTimeSeriesScatter creates a scatter plot with time on the x-axis

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mlspTimeSeriesScatter(
  tableinput,
  titlevar = NULL,
  title = NULL,
  subtitle = NULL,
  fillPalette = "guess",
  theme = "default",
  xlab = NULL,
  PlotMargins = c(0.25, 0, 3.5, 0.5),
  wraptitle = 90,
  legendPosition = "top",
  legendJust = "right",
  alpha = 1
)

Arguments

tableinput

The source table created by make.ts()

titlevar

A quoted variable name. If supplied, the full text of this variable will be the title

title

A character string. If supplied it will be the graph's title.

subtitle

If supplied, it will be the graph's subtitle

fillPalette

defaults to "guess", in which case a "best-guess" palette is assigned. This argument also accepts the name of ColorBrewer palette or a character vector of color names.

theme

Optional. One of either "LubarSlides" or "MLSP". This sets the theme to theme_LubarSlides or theme_MLSP, respectively.

xlab

an optional x-axis name

PlotMargins

Only applicable when theme = "LubarSlides". It allows the user to manually change the plot.margin parameter.

wraptitle

= the length at which to wrap the character title string. By default it is 90 which matches the width of a LubarSlide.

alpha

the transparency of the dots, defaults to opaque

Details

This function takes a topline table created with make.topline() and returns it as a bar chart.

Value

A dataframe.

Examples

1
make.ts(g40, integ) %>% mlspTimeSeriesScatter()

jdjohn215/MLSPTools documentation built on Sept. 2, 2020, 1:16 a.m.