Description Usage Arguments Value Examples
View source: R/05_output_visualization.R
Interactive, 3D plot_ly
plots of cluster sizes and
colors for each image in a list of cluster dataframes in order to visualize
cluster output.
1 2 3 4 5 6 7 8 | plotClusters(
cluster.list,
color.space = "rgb",
p = "all",
pausing = TRUE,
ref.white,
to = "sRGB"
)
|
cluster.list |
A list of identically sized dataframes with 4 columns each
(R, G, B, Pct or H, S, V, Pct) as output by |
color.space |
The color space ( |
p |
Numeric vector of indices for which elements to plot; otherwise each set of clusters is plotted in succession. |
pausing |
Logical. Should the function pause and wait for user keystroke before plotting the next 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 3D plot_ly
plot of cluster sizes in the
specified colorspace for each cluster dataframe provided.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## 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::plotClusters(cluster.list, p=c(1:3, 7:8), pausing=FALSE)
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::plotClusters(clusterListHSV, p=c(1:3, 7:8), hsv=TRUE,
pausing=FALSE)
## End(Not run)
|
Using 3^3 = 27 total bins
|
| | 0%
|
|========= | 12%
|
|================== | 25%
|
|========================== | 38%
|
|=================================== | 50%
|
|============================================ | 62%
|
|==================================================== | 75%
|
|============================================================= | 88%
|
|======================================================================| 100%There were 30 warnings (use warnings() to see them)
Using 3^3 = 27 total bins
|
| | 0%
|
|========= | 12%
|
|================== | 25%
|
|========================== | 38%
|
|=================================== | 50%
|
|============================================ | 62%
|
|==================================================== | 75%
|
|============================================================= | 88%
|
|======================================================================| 100%There were 30 warnings (use warnings() to see them)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.