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

Description Usage Arguments Value

View source: R/plot_methods.R

Description

Generate a (gg)plot of a Geos object.

Usage

1
2
3
## S3 method for class 'Geos'
plot(x, y = NULL, geom = c("bar", "point", "rect"),
  sort.by = y, log.scale = FALSE, ...)

Arguments

x

a Geos object.

y

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

geom

(string) short name of the geom ggplot2 method to be used.

sort.by

(string) name of the column to sort the plot by, defaults to y. If the column contains string, alphabetical order will be used unless every string can be coerced to an integer in which case numerical (ascending) order will be used. If the column contains numerical values, numerical (descending) order will be used.

log.scale

(flag) plot y-axis on log scale?

...

ignored.

Value

A ggplot object.


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