View source: R/plot_colors_3D.R
plot_colors_3d | R Documentation |
plot_colors_3d
calls plot_ly
and creates an interactive 3D scatterplot of
colors extracted from Windows BMP, JPEG, PNG, TIFF, and SVG format images with the
get_colors
function in the RGB color space.
plot_colors_3d(
data,
sample_size = 5000,
marker_size = 2.5,
color_space = "RGB"
)
data |
a |
sample_size |
the number of pixels to randomly select. |
marker_size |
size of marker. |
color_space |
specifies color space. By default, the colors are displayed in the |
# Extract all colors
pic1 <- system.file("extdata", "pic5.png", package = "colorfindr")
col <- get_colors(pic1)
# Plot image composition
plot_colors_3d(col)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.