netvl.plot.ts: Plotting Time-Series objects

Description Usage Arguments Author(s) See Also Examples

Description

Plotting method for data frames with date and another variable of interest.

Usage

1
netvl.plot.ts(data, ts.type = NULL, ylab = NULL, title = NULL, print = TRUE)

Arguments

data

data frame with date formatted variable and another variable of interest or a time-series 'ts' object.

ts.type

variable of interest. It allows "maus", "revenue" or "costs" options. If 'data' is a 'ts' object, then ts.type must be NULL.

ylab

Vertical axis (y) label.

title

Main title label.

print

TRUE if it should automatically print the plot or FALSE if it should return the plot object instead.

Author(s)

Kazuki Yokoyama

See Also

ggplot which is used to actually plot.

Examples

1
2
3
4
5
6
data(fb)
netvl.plot.ts(fb, "maus")
netvl.plot.ts(fb, "revenue")
netvl.plot.ts(fb, "costs")
maus <- netvl.to.ts(fb, "maus")
netvl.plot.ts(maus, ylab = "Million of users", title = "Monthly Active Users")

kmyokoyama/netvl documentation built on May 20, 2019, 12:52 p.m.