ShinyApp Pitch for "Basic Introduction to ggplot2"

M Zunnurain Hussain using R version 3.6.1 (2019-07-05) and knitr version 1.25
September 23, 2019

Why is the ShinyApp "Basic Introduction to ggplot2" needed?

  • Non-intuitive syntax of ggplot R commands
  • Basic capabilities of ggplot not widely known
  • Options such as colour and facet_wrap mysterious to many

Who needs this ShinyApp?

  • Anyone who wants to start using ggplot but was hesitant to make the leap
  • Anyone teaching others how to use ggplot who needs a handy interactive example
  • Anyone interested to see power and flexibility of ggplot
  • Anyone wishing to observe power of the eval command
ggplot_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))

Example Command and Plot Generated by the ShinyApp "Basic Introduction to ggplot2"

g = ggplot(mpg, aes(x=cyl, y=hwy, colour=class)) + facet_wrap(~drv) + geom_point()

plot of chunk unnamed-chunk-4

Try the ShinyApp "Basic Introduction to ggplot2" Today!