tsplot: Trend Time Series Plots.

Description Usage Arguments Value Examples

View source: R/tsplot.R

Description

tsplot function will draw Time Series Plots for Trend analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
tsplot(
  data,
  time = NULL,
  value = NULL,
  title = NULL,
  subtitle = NULL,
  xtitle = NULL,
  ytitle = NULL,
  caption = NULL
)

Arguments

data

input data.frame or ts

time

time variable

value

value variable

title

main title

subtitle

subtitle

xtitle

x axis title

ytitle

y axis title

caption

caption

Value

An object of class ggplot

Examples

1
2
3
4
5
6
7
#ts type data
plot<- tsplot(data=AirPassengers)
plot

#data.frame data
plot<- tsplot(data=as.data.frame(economics),time="date",value="uempmed")
plot

HeeseokMoon/ggedachart documentation built on Dec. 31, 2020, 12:59 p.m.