Performance
performance.Rmd
While performance wasn’t a number one concern for me when writing
plotscaper
, I found it can actually perform fairly well on
moderately-sized data sets (thanks largely to the work of the very smart
people who have optimized JavaScript engines like V8).
If you want to put plotscaper
under a stress test, try
creating a figure with the entire diamonds
dataset from the
ggplot2
package:
(the figure below might take a bit to load, please be patient)
library(plotscaper)
url <- "https://raw.githubusercontent.com/bartonicek/plotscape/master/datasets/diamonds.json"
create_schema(url) |>
add_scatterplot(c("carat", "price")) |>
add_barplot(c("color")) |>
set_scale("plot1", "size", mult = 0.1) |>
render()