Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tidyss/rroughviz
rroughviz
https://github.com/tidyss/rroughviz
js r roughviz
Last synced: 28 days ago
JSON representation
rroughviz
- Host: GitHub
- URL: https://github.com/tidyss/rroughviz
- Owner: tidyss
- License: other
- Created: 2020-04-14T09:46:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T09:48:02.000Z (over 4 years ago)
- Last Synced: 2024-08-03T03:04:19.406Z (4 months ago)
- Topics: js, r, roughviz
- Language: R
- Homepage:
- Size: 202 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - rroughviz - R warpper for roughViz.js, a JavaScript library for creating sketchy/hand-drawn styled charts. (Visualization / General-Purpose)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# rroughviz
rroughviz
## Installation
``` r
devtools::install_github('tidyss/rroughviz')
```## rough_bar
bar,barh,donut,pie are Same usage
```{r}
library(rroughviz)
rough_bar(iris$Species)
```## rough_barh
```{r}
labels <- c('a','b')
values <- c(5,10)
rough_barh(labels = labels,values = values)
```## rough_donut
```{r}
rough_donut(iris$Species)
```## rough_pie
```{r}
rough_pie(iris$Species)
```## rough_line
```{r}
data <- women
rough_line(data)
```## rough_scatter
```{r}
rough_scatter(iris$Sepal.Length,iris$Sepal.Width)
```## rough_stackedbar
```{r}
data <- data.frame(
month = c('Jan','Fre'),
A = c(10,20),
B = c(5,10)
)
rough_stackedbar(data,labels = 'month')
```