plot_summary_glyph | R Documentation |
plot_summary_glyph
plot_summary_glyph( summary_dt, x_points, y_points = x_points, xrng = c(-0.5, 0.5), yrng = c(-0.5, 0.5), ylim = NULL, p = NULL, N_floor = 0, N_ceiling = NULL, min_size = 0.3, return_data = FALSE, color_mapping = NULL, x_var = "x", y_var = "y", wide_var = "name", extra_vars = character() )
summary_dt |
results from prep_summary() |
x_points |
numeric. number of grid points to use in x dimension. |
y_points |
numeric. number of grid points to use in y dimension. |
xrng |
view domain in x dimension. |
yrng |
view domain in y dimension. |
ylim |
ylimits per glyph |
p |
an existing ggplot to overlay images onto. Default of NULL starts a new plot. |
N_floor |
The value of N to consider 0. bins with N values <= N_floor will be ignored. |
N_ceiling |
The value of N to consider 1. bins with N values >= N_ceiling will have images drawn at full size. |
min_size |
Numeric (0, 1]. The minimum size images to draw. The default of .3 draws images for all bins with N values >= 30 N_floor to N_ceiling. |
return_data |
if TRUE, data.table that would have been used to create ggplot is returned instead. |
color_mapping |
mapping for scale_color_manual |
a ggplot containing glyphs of local profile summaries arranged in t-sne space.
data("profile_dt") data("tsne_dt") n_points = 12 summary_dt = prep_summary(profile_dt = profile_dt, position_dt = tsne_dt, x_points = n_points) plot_summary_glyph(summary_dt, x_points = n_points)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.