Description Usage Arguments Value References Examples
Function to plot a “colour cloud” spatial representation of an RGB colour histogram of an image.
1 | plotColourCloud(hist, title = "", radius = 0.005, dotSize = 1)
|
hist |
A colour histogram generated by |
title |
The main title of the plot. |
radius |
The jitter radius of dots in the cloud. |
dotSize |
The size of each dot in the colour cloud. |
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)
plotColourCloud(rgbhist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.