library(polychart)

Load ggplot, and define ggplot object

library(ggplot2)
sp <- ggplot(mtcars, aes(x=wt, y=mpg)) + 
  geom_point(aes(colour=am)) 
gg <- sp + 
  facet_wrap(~ vs) + 
  ggtitle("This is the title!")

provide polychart with the ggplot scatter plot object

polychart(gg_obj = gg, data_cols=c("drat","hp","qsec"))


alexcritschristoph/PolychartHTMLWidget documentation built on May 11, 2019, 11:28 p.m.