## ----setup, include=FALSE----------------------------------------------------- library(unigd) temp <- airquality$Temp ## ----------------------------------------------------------------------------- my_svg_1_0 <- ugd_render_inline({ hist(temp, col="darkblue", main = "Zoom 1.0") }, as="png-base64", width=300, height=300, zoom=1.0) my_svg_1_5 <- ugd_render_inline({ hist(temp, col="darkblue", main = "Zoom 1.5") }, as="png-base64", width=300, height=300, zoom=1.5) my_svg_0_5 <- ugd_render_inline({ hist(temp, col="darkblue", main = "Zoom 0.5") }, as="png-base64", width=300, height=300, zoom=0.5) alts <- c("Histogram at zoom 1.0", "Histogram at zoom 1.5", "Histogram at zoom 0.5") knitr::raw_html(paste0(sprintf("\"%s\"", c(my_svg_1_0, my_svg_1_5, my_svg_0_5), alts)))