Description Usage Arguments Value Examples
Randomly sample a img df to reduce points
1 |
img_df |
A tidy data frame - output from |
frac |
Numeric, between 0 and 1, fraction of total points to be included |
A tidy data frame with a reduced number of rows
1 2 3 4 5 6 | img_path <- system.file("extdata/images", "seurat.png", package = "pointillist")
png_df <- img_df(img_path)
nrow(png_df)
png_df_sample <- sample_df(png_df, 0.3)
nrow(png_df_sample)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.