-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
52 lines (38 loc) · 1.12 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ggpizza
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
The goal of ggpizza is to ...
## Installation
You can install the development version of `ggpizza` like so:
``` r
#install.packages('devtools')
devtools::install_github('turtletopia/ggpizza')
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
library(ggpizza)
library(ggplot2)
set.seed(123)
some_random_data <- data.frame(x = sample(1:10, 50, TRUE),
y = sample(1:10, 50, TRUE),
color = sample(1:3, 50, TRUE))
some_random_data
```
```{r fig.width=10, fig.height=7}
ggplot(some_random_data, aes(x, y, color = as.factor(color))) +
geom_point_pizza(size = 3)
```