plotTS_comb | R Documentation |
Combine time seires plot together
plotTS_comb(
...,
nrow = 1,
type = "line",
list = NULL,
x = "Date",
y = "",
title = "",
output = FALSE
)
... |
different time series plots generated by |
nrow |
A number showing the number of rows. |
type |
A string showing 'line' or 'bar'. |
list |
If input is a list containing different ggplot data, use l |
x |
A string of x axis name. |
y |
A string of y axis name. |
title |
A string of the title. |
output |
A boolean, if chosen TRUE, the output will be given.
NOTE: yOU HAVE TO PUT A |
..., representing different ouput file generated by plotTS(, output = 'ggplot'), name = yourname
,
different names must be assigned when generating different output.
e.g.
a1, a2, a3 are different files generated by plotTS(, output = 'ggplot'), name = yourname
, you can
set plotTS(a1,a2,a3)
or plotTS(list = list(a1,a2,a3))
A combined time series plot.
H. Wickham. ggplot2: elegant graphics for data analysis. Springer New York, 2009.
a1 <- plotTS(testdl[[1]], output = 'ggplot', name = 1)
a2 <- plotTS(testdl[[2]], output = 'ggplot', name = 2)
plotTS_comb(a1, a2)
plotTS_comb(list = list(a1, a2), y = 'y axis', nrow = 2)
# More examples can be found in the user manual on https://yuanchao-xu.github.io/hyfo/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.