knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
ggshuffle is a RStudio-Addin that uses the rstudioapi package and provides a GUI to give a visual tool to determine if your ggplot2 charts appearance if affected by the order in which your points/lines are being plotted.
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("EmilHvitfeldt/ggshuffle")
ggshuffle can be used by highlighting some ggplot2 code and clicking the ggshuffle
button in the Addins tab or by passing a ggplot2 object to the ggshuffle()
function.
library(ggplot2) ## basic example code ggg <- ggplot(na.omit(txhousing), aes(volume, median, color = year)) + geom_point() ggshuffle(ggg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.