SkillAgentSearch skills...

ExplodingboxplotR

d3.js exploding boxplots for R as an htmlwidget

Install / Use

/learn @timelyportfolio/ExplodingboxplotR
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

exploding_boxplotR

d3.js Exploding Boxplots

CRAN RStudio mirror
downloads

d3.js Exploding Boxplots from d3_exploding_boxplot in htmlwidget form for R

Installation

# get newest htmlwidgets
devtools::install_github("ramnathv/htmlwidgets")
devtools::install_github("timelyportfolio/explodingboxplotR")

Usage

library(explodingboxplotR)

# use this to replicate
#   from ?boxplot
#boxplot(count ~ spray, data = InsectSprays, col = "lightgray")

exploding_boxplot(
  data.frame(
    rowname = rownames(InsectSprays),
    InsectSprays,
    stringsAsFactors = FALSE
  ),
  y = "count",
  group = "spray",
  color = "spray",
  label = "rowname"
)

# demonstrate all of the options
#  xlab does not work
#  filed issue on source repo
exploding_boxplot(
  data.frame(
    rowname = rownames(InsectSprays),
    InsectSprays,
    stringsAsFactors = FALSE
  ),
  y = "count",
  group = "spray",
  color = "spray",
  label = "rowname",
  iqr = 2,
  margin = list(bottom = 50, left = 30, top = 20, right = 20),
  xlab = "Spray Type",
  ylab = "Count Provided"
)

License

MIT + file LICENSE © Kenton Russell.

View on GitHub
GitHub Stars37
CategoryDevelopment
Updated3y ago
Forks10

Languages

HTML

Security Score

60/100

Audited on Nov 17, 2022

No findings