View source: R/color_cluster.R
color_cluster | R Documentation |
color_cluster groups pixels of each curve in the image based on color using k-medoids clustering
color_cluster(fig.df, num_curves = 3, censoring = F, enhance = F)
fig.df |
a dataframe with x,y and h,s,l values for each pixel |
num_curves |
the number of curves that are on the figure to be digitized |
censoring |
logical indicating whether censoring occurs in a different color (usually black) |
enhance |
indicating whether converting HSl channcels into same scale |
fig.grp: a dataframe with x,y,h,s,l values and associated group (curve) for each pixel
# color_cluster(fig.df = fig.df, num_curves = 3, censoring = F, enhance = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.