Description Usage Arguments Value References Examples
This function plots an RGB histogram on the current graphics device.
1 | plotRgbHistogram(colourHist)
|
colourHist |
A colour histogram created by calling |
None
See: http://cns.bu.edu/~gsc/ColorHistograms.html
1 2 3 4 5 6 7 8 | library(CulturalAnalytics)
library(jpeg)
imgdir<-paste(system.file(package = "CulturalAnalytics"), "images", sep = "/")
imgs<-paste(imgdir, dir(path = imgdir, pattern = ".jpg"), sep = "/")
img<-readJPEG(imgs[1])
rgbdf<-imageToDataFrame(img)
rgbhist<-rgbImageHist(rgbdf)
plotRgbHistogram(rgbhist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.