rm_stripes: [!] Remove facet stripes from 'ggplot2' plot

View source: R/rm_stripes.R

rm_stripesR Documentation

[!] Remove facet stripes from 'ggplot2' plot

Description

A convenience function to remove facet stripes from 'ggplot2' plot.

Usage

rm_stripes(axis = "xy")

Arguments

axis

String indicating axis from which the stripes should be removed: either "x", "y", "xy". Default is "xy".

Details

rm_stripes is a wrapper of function theme with one of the 3 options (depending on value of input variable "axis") strip.text.x, strip.text.y, or strip.text set to element_blank().

Value

Updated ggplot2 object of class ggplot.

Author(s)

Vilmantas Gegzna

See Also

Function theme from package ggplot2.

Other spHelper plots: check_palette(), layer_spRangeMean(), plot_colors(), plot_hyPalette(), plot_spCompare(), plot_spDiff(), plot_spDistribution(), qplot_confusion(), qplot_crosstab(), qplot_infoDim(), qplot_kAmp(), qplot_kSp(), qplot_prediction(), qplot_spRangeCenter(), qplot_spRangeMedian(), qplot_spStat(), qplot_spc(), rmExpr(), stat_chull()

Examples


p <- ggplot(Spectra2, wl.range = c(min ~ 420, 500~600)) +
     geom_line(aes(color = gr)) +
     facet_wl("class")

p
p + rm_stripes("x")
p + rm_stripes()


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.