plot.GeoTimeseries: Generate a (gg)plot of a GeoTimeseries object.

Description Usage Arguments Value Note

View source: R/plot_methods.R

Description

Generate a (gg)plot of a GeoTimeseries object.

Usage

1
2
3
## S3 method for class 'GeoTimeseries'
plot(x, y = NULL, by = NULL, subset = NULL,
  aggregate = FALSE, title = y, log.scale = FALSE, legend = TRUE, ...)

Arguments

x

a GeoTimeseries object.

y

(string) name of the metric to plot. If omitted, plots the first metric in the object by default.

by

(string) group by which column? Default is 'geo'.

subset

(vector) subset of the items in column 'by' to use.

aggregate

(flag) aggregate over?

title

(string) a title string. By default, the name of the metric to plot.

log.scale

(flag) plot y-axis on log scale?

legend

(flag) plot the legend?

...

ignored.

Value

A ggplot object.

Note

Sets the lower y-axis limit to zero if all 'y' values are nonnegative and log.scale=FALSE.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.