rm_stripes | R Documentation |
A convenience function to remove facet stripes from 'ggplot2' plot.
rm_stripes(axis = "xy")
axis |
String indicating axis from which the stripes should be removed:
either |
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()
.
Updated ggplot2 object of class ggplot
.
Vilmantas Gegzna
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()
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.