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 )
| x |
|
|---|---|
| mask.obj |
|
| add.mean | Boolean whether a vertical blue line is added to the
plot indicating the mean value of |
| add.median | Boolean whether a vertical red line is added to the
plot indicating the median value of |
| save.dir | Character path (folder) for saving the plot as an image. |
| binwidth | Double value of bindwidth for |
| title | Character string title of the plot. |
a ggplot object containing the plot.
geom_bar.