powered by
Get whether or not a plot or PlotFeatureSet.
hasLegend(object)# S4 method for PlotFeatureSet hasLegend(object)# S4 method for ggplot hasLegend(object)# S4 method for trellis hasLegend(object)# S4 method for gTree hasLegend(object)# S4 method for PlotFeatureSet hasLegend(object)
# S4 method for PlotFeatureSet hasLegend(object)
# S4 method for ggplot hasLegend(object)
# S4 method for trellis hasLegend(object)
# S4 method for gTree hasLegend(object)
An object of class PlotFeatureSet, GGplotFeatureSet, TrellisFeatureSet, ggplot, or trellis.
A boolean indicating whether or not a legend is displayed in the plot.
# NOT RUN { library(ggplot2) mt = datasets::mtcars plt = qplot(mt$mpg, mt$cyl) fs = makeFeatureSet(plt) hasLegend(fs) # }
Run the code above in your browser using DataLab