coordSystem-methods: Accessor method for the coordinate system (slot "coordsys")...

Description Usage Arguments Value Examples

Description

Get the coordinate system for a plot or PlotFeatureSet.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
coordSystem(object)

## S4 method for signature 'PlotFeatureSet'
coordSystem(object)

## S4 method for signature 'ggplot'
coordSystem(object)

## S4 method for signature 'trellis'
coordSystem(object)

## S4 method for signature 'gTree'
coordSystem(object)

## S4 method for signature 'PlotFeatureSet'
coordSystem(object)

Arguments

object

An object of class PlotFeatureSet, GGplotFeatureSet, TrellisFeatureSet, ggplot, or trellis.

Value

A character vector describing the coordinate system employed in the plot.

Examples

1
2
3
4
5
library(ggplot2)
mt = datasets::mtcars
plt = qplot(mt$mpg, mt$cyl)
fs = makeFeatureSet(plt)
coordSystem(fs)

gmbecker/recordr documentation built on May 24, 2021, 10:59 a.m.