View source: R/05_output_visualization.R
plotHist | R Documentation |
Plots a color histogram from a dataframe as returned by
getImageHist
, getHistList
, or
extractClusters
. Bars are colored according to the color of the
bin.
plotHist(
histogram,
pausing = TRUE,
color.space = "rgb",
ref.white,
from = "sRGB",
main = "default",
...
)
histogram |
A single dataframe or a list of dataframes as returned by
|
pausing |
Logical. Pause and wait for keystroke before plotting the next histogram? |
color.space |
The color space ( |
ref.white |
The reference white passed to
|
from |
Display color space of image if clustering in CIE Lab space, probably either "sRGB" or "Apple RGB", depending on your computer. |
main |
Title for plot. If |
... |
Optional arguments passed to the |
color_df <- as.data.frame(matrix(rep(seq(0, 1, length.out=3), 3), nrow=3,
ncol=3))
color_df$Pct <- c(0.2, 0.5, 0.3)
colordistance::plotHist(color_df, main="Example plot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.