author: Marlen Doskarin using R version 3.6.2 (2019-12-12) and knitr version 1.28 date: Апрель 08, 2020 transition: rotate incremental: true
Why is the ShinyApp “Basic Introduction to ggplot2” needed? ========================================================
- Non-intuitive syntax of `ggplot` R commands
ggplot not widely knowncolour and facet_wrap mysterious to manyWho needs this ShinyApp? ========================================================
- Anyone who wants to start using `ggplot` but was hesitant to make the leap
ggplot who needs a handy interactive exampleggploteval 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))
```
## Loading required package: ggplot2
```
```
## Warning: package 'ggplot2' was built under R version 3.6.3
```
g = ggplot(mpg, aes(x=cyl, y=hwy, colour=class)) + facet_wrap(~drv) + geom_point()
========================================================