Learn R Programming

geometr (version 0.2.10)

.makeGrob: Make the grob of a plot

Description

Make the grob of a plot

Usage

.makeGrob(
  x,
  featureType,
  plotValues,
  scaleValues,
  plotParams,
  rows = rows,
  cols = cols,
  theme = gtTheme
)

Arguments

x

the object to transform to class grob.

featureType

the type of feature to make a grob from.

plotValues

the plot values.

scaleValues

the scale values.

plotParams

new plotting parameters specified via the quick options in visualise.

rows

in case it's a grid, the number of rows.

cols

in case it's a grid, the number of cols.

theme

the theme from which to take parameters.

Value

Depending on the provided geometry either a pointsGrob, a polylineGrob, a pathGrob or a rasterGrob.