Description Usage Arguments Value Note Examples
View source: R/05_output_visualization.R
Plots cluster sets from several different dataframes on a single plot for easy comparison.
1 2 3 4 5 6 7 8 | plotClustersMulti(
cluster.list,
color.space = "rgb",
p = "all",
title = "",
ref.white,
to = "sRGB"
)
|
cluster.list |
A list of identically sized dataframes with 4 columns
each as output by |
color.space |
The color space ( |
p |
Numeric vector of indices for which elements to plot; otherwise all of the cluster sets provided will be plotted together. |
title |
Optional title for the plot. |
ref.white |
The reference white passed to
|
to |
Display color space of image if clustering in CIE Lab space, probably either "sRGB" or "Apple RGB", depending on your computer. |
A single plot_ly
plot of every cluster in a
list of cluster sets. Each cluster is colored by cluster color,
proportional to cluster size, and labeled according to the image from which
it originated.
Each cluster plotted is colored according to its actual color, and labeled according to the image from which it originated.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# Takes >10 seconds
cluster.list <- colordistance::getHistList(dir(system.file("extdata",
"Heliconius/", package="colordistance"), full.names=TRUE), plotting=FALSE,
lower=rep(0.8, 3), upper=rep(1, 3))
colordistance::plotClustersMulti(cluster.list, p=c(1:4), title="Orange and
black Heliconius")
colordistance::plotClustersMulti(cluster.list, p=c(5:8), title="Black, yellow,
and red Heliconius")
clusterListHSV <- colordistance::getHistList(dir(system.file("extdata",
"Heliconius/", package="colordistance"), full.names=TRUE), hsv=TRUE,
plotting=FALSE, lower=rep(0.8, 3), upper=rep(1, 3))
colordistance::plotClustersMulti(clusterListHSV, p=c(1:3, 7:8), hsv=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.