ggplotAssist: A shiny app for learn ggplot2

Description Usage Arguments Value Examples

View source: R/ggplotAssist.R

Description

A shiny app for learn ggplot2

Usage

1
ggplotAssist(df = NULL, viewer = "browser")

Arguments

df

A tibble or a tbl_df or a data.frame to manipulate

viewer

Specify where the gadget should be displayed. Possible choices are c("dialog","browser","pane")

Value

An R code for ggplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(tidyverse)
library(rstudioapi)
library(miniUI)
library(moonBook)
library(shinyAce)
library(ggthemes)
library(shiny)
library(stringr)
library(editData)
library(shinyWidgets)
library(gcookbook)
library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
    result<-ggplotAssist(mtcars)
    result
}

Example output

── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.3.2     ✔ purrr   0.3.4
✔ tibble  3.0.4     ✔ dplyr   1.0.2
✔ tidyr   1.1.2     ✔ stringr 1.4.0
✔ readr   1.4.0     ✔ forcats 0.5.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()

ggplotAssist documentation built on May 1, 2019, 8:43 p.m.