Description Usage Arguments Value Note Author(s) See Also Examples
ggMyTS
is primarily designed to be used with a data frame created with
meltMyTS
(QMSS).
1 2 |
df |
The data frame in which to look for variables to be plotted. Typically
created with |
varlist |
A character string or vector naming the variable(s) in |
line |
Should lines be plotted? Defaults to |
point |
Should points be plotted? Defaults to |
pointsize |
Size of the points, if |
linewidth |
Width of the line(s), if |
... |
Other options that will be passed to |
A ggplot
object.
At least one of line
or point
must be TRUE
.
Jonah Gabry <jsg2201@columbia.edu>. See ggplot
for the author of the ggplot
function.
1 2 3 4 5 6 7 8 | ## Not run:
keep.vars <- c("year", "n.confinan", "fulltime")
plot.dat <- meltMyTS(mv.ts.object = by.year.ts,
time.var = "year", keep.vars = keep.vars)
ggMyTS(plot.dat, varlist = c("n.confinan", "fulltime"))
ggMyTS(plot.dat, "n.confinan", color = "forestgreen", point = F, linetype = 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.