RasterLayer.Create a ggplot2 histogram of a RasterLayer.
plot_hist(
  x,
  mask.obj = NULL,
  add.mean = FALSE,
  add.median = FALSE,
  save.dir = "",
  binwidth = 0.05,
  title = NULL
)RasterLayer object containing the spatial data.
RasterLayer object optionally used for masking
only specific parts of x.
Boolean whether a vertical blue line is added to the
plot indicating the mean value of x.
Boolean whether a vertical red line is added to the
plot indicating the median value of x.
Character path (folder) for saving the plot as an image.
Double value of bindwidth for geom_bar.
Character string title of the plot.
a ggplot object containing the plot.