The goal of jolisPlots is basically to teach me how to develop a package.
You can install jolisPlots from github with:
# install.packages("devtools")
devtools::install_github("Rmomal/jolisPlots")
This is a basic example which shows you how to solve a common problem:
## basic example code
library(tidyverse)
#> ── Attaching packages ───────────────────────────────────── tidyverse 1.2.1 ──
#> ✔ ggplot2 3.0.0.9000 ✔ purrr 0.2.5
#> ✔ tibble 1.4.2 ✔ dplyr 0.7.6
#> ✔ tidyr 0.8.1 ✔ stringr 1.3.1
#> ✔ readr 1.1.1 ✔ forcats 0.3.0
#> ── Conflicts ──────────────────────────────────────── tidyverse_conflicts() ──
#> ✖ dplyr::filter() masks stats::filter()
#> ✖ dplyr::lag() masks stats::lag()
library(jolisPlots)
#>
#> Attaching package: 'jolisPlots'
#> The following object is masked from 'package:base':
#>
#> transform
long<-transform(diamonds[,c("x","y","z")])
graph_bar(long)
graph_point(diamonds,"carat","price","cut")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.