switch.density: Density plot

View source: R/switch.density.R

switch.densityR Documentation

Density plot

Description

Density plot

Usage

switch.density(x, time.points, make.plotly = T, plot.type = "density",
  show.line = T, title = "Density of switch points", ...)

Arguments

x

a numeric vector to plot th density.

time.points

a numeric vector of the time points of time-series, e.g. 1,2,3,...

make.plotly

logical, to plot plotly format figures (TRUE) or general plot (FALSE)?. See details in ggplotly in plotly R pacakge.

plot.type

the plot types. Options are "density" for density bar plot and "frequency" for frequency bar plot.

show.line

logical, to show density or frequency line or not?

...

additional parameters pass to plotly::ggplotly

titile

the title of the plot.

Value

density plot in ggplot2 format or plotly format if make.plotly=T


wyguo/TSIS documentation built on May 21, 2023, 12:36 a.m.