Nothing
if (at_home()) {
using("tinysnapshot")
options(tinysnapshot_device = "svglite")
options(tinysnapshot_height = 7) # inches
options(tinysnapshot_width = 7)
options(tinysnapshot_tol = 200) # pixels
options(tinysnapshot_os = "Linux")
data("hongite")
coda <- as_composition(hongite)
# Plot =======================================================================
plot_pairs <- function() plot(coda)
expect_snapshot_plot(plot_pairs, "plot_pairs")
plot_pairs <- function() plot(coda, by = rep(1:5, 5))
expect_snapshot_plot(plot_pairs, "plot_pairs_group")
# Histogram ==================================================================
plot_hist <- function() hist(coda, ncol = 3)
expect_snapshot_plot(plot_hist, "plot_hist")
# Barplot ====================================================================
plot_barplot <- function() barplot(coda, by = NULL, order_columns = FALSE, border = "black")
expect_snapshot_plot(plot_barplot, "plot_barplot")
plot_barplot_order <- function() barplot(coda, order_columns = TRUE, border = "black")
expect_snapshot_plot(plot_barplot_order, "plot_barplot_order_columns")
plot_barplot_order <- function() barplot(coda, order_rows = 2, border = "black")
expect_snapshot_plot(plot_barplot_order, "plot_barplot_order_rows")
plot_barplot_group <- function() barplot(coda, by = rep(1:5, 5), order_columns = TRUE, border = "black")
expect_snapshot_plot(plot_barplot_group, "plot_barplot_group")
# Density ====================================================================
# See argument old.coords of density().
if (getRversion() >= "4.4.0") {
ilr <- transform_ilr(coda)
plot_ratio <- function() plot(ilr, by = NULL, ncol = 2)
expect_snapshot_plot(plot_ratio, "plot_ratio")
plot_ratio <- function() plot(ilr, by = rep(1:5, 5), ncol = 2)
expect_snapshot_plot(plot_ratio, "plot_ratio_group")
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.