M Zunnurain Hussain using R version 3.6.1 (2019-07-05) and knitr version 1.25
September 23, 2019
ggplot
R commandsggplot
not widely knowncolour
and facet_wrap
mysterious to manyggplot
but was hesitant to make the leapggplot
who needs a handy interactive exampleggplot
eval
commandggplot_command = sprintf("g = ggplot(mpg, aes(x=%s, y=%s, colour=%s)) + facet_wrap(~%s) + geom_%s()",
input$x, input$y, input$colour, input$facet_wrap, input$geom)
eval(parse(text=ggplot_command))
g = ggplot(mpg, aes(x=cyl, y=hwy, colour=class)) + facet_wrap(~drv) + geom_point()
Deployed at https://zunnurainhussain112.shinyapps.io/ShinyProject/
Code available at: https://github.com/mzunnurainhussain/datasciencecoursera/tree/master/Developing%20Data%20Products/week%204
Check the documentation at : https://github.com/mzunnurainhussain/datasciencecoursera/tree/master/Developing%20Data%20Products/week%204/www/documentation.html