Learn R Programming

trackr (version 0.10.7)

coordSystem: Accessor method for the coordinate system (slot "coordsys") of the plot object.

Description

Get the coordinate system for a plot or PlotFeatureSet.

Usage

coordSystem(object)

# S4 method for PlotFeatureSet coordSystem(object)

# S4 method for ggplot coordSystem(object)

# S4 method for trellis coordSystem(object)

# S4 method for gTree coordSystem(object)

# S4 method for 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

Run this code
# NOT RUN {
library(ggplot2)
mt = datasets::mtcars
plt = qplot(mt$mpg, mt$cyl)
fs = makeFeatureSet(plt)
coordSystem(fs)
# }

Run the code above in your browser using DataLab