- Notifications
You must be signed in to change notification settings - Fork25
Implementation of the radar chart from chart.js library
License
MangoTheCat/radarchart
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An R implementation of the radar chart from thechart.js javascript library.
Unfortunately we're not developingradarchart at the moment. Major CRAN fixes will be done if necessary.
You can install from CRAN.
install.packages("radarchart")To install the latest version direct from GitHub you'll need devtools installed. Assuming you have this run:
devtools::install_github("MangoTheCat/radarchart")
Or if you want to hack about with the code then clone the repository, change directory into it and run
devtools::install()
Note:htmlwidgets packages don't work well withdevtools::load_all().
Once installed you can make a radar chart
library(radarchart)labs<- c("Communicator","Data Wangler","Programmer","Technologist","Modeller","Visualizer")scores<-list("Rich"= c(9,7,4,5,3,7),"Andy"= c(7,6,6,2,6,9),"Aimee"= c(6,5,8,4,7,6))chartJSRadar(scores=scores,labs=labs,maxScale=10)
Static version. Real plots are interactive
Alternatively, you may supply a data frame andchartJSRadar will pickup the labels from the first column of the data. Also we're showing an option to display data set labels in the mouse over.
scores<-data.frame("Label"=c("Communicator","Data Wangler","Programmer","Technologist","Modeller","Visualizer"),"Rich"= c(9,7,4,5,3,7),"Andy"= c(7,6,6,2,6,9),"Aimee"= c(6,5,8,4,7,6))chartJSRadar(scores,maxScale=10,showToolTipLabel=TRUE)
Static version. Real plots are interactive
You can now also add a title
chartJSRadar(skills,main="Data Science Radar")
Static version. Real plots are interactive
As it's based on htmlwidgets it's easy to useradarchart with Shiny. Just use the
chartJSRadarOutput("ID",width="450",height="300")
function in yourui.R and callchartJSRadar as normal in yourserver.R. A minimal example can be found ininst/shiny-examples/basic. You can run this with therunExampleApp function
runExampleApp("basic")An"options" app is available to help construct more customised radar charts.
MIT © Mango Solutions, Nick Downie
About
Implementation of the radar chart from chart.js library
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.


