Learn R Programming

trackr (version 0.10.7)

dataTypes: Accessor method for the variable types (slot "vartypes") of the plot object.

Description

Get the variable types from a plot feature set

Usage

dataTypes(object)

# S4 method for PlotFeatureSet dataTypes(object)

# S4 method for ggplot dataTypes(object)

# S4 method for trellis dataTypes(object)

# S4 method for gTree dataTypes(object)

# S4 method for PlotFeatureSet dataTypes(object)

Arguments

object

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

Value

A named list of variable types of the form list(x = "numeric", y = "factor", ...).

Examples

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

# }

Run the code above in your browser using DataLab