-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
57 lines (42 loc) · 1.4 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
53
54
55
56
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```
```{r logo, message = FALSE, echo = FALSE, fig.asp=.2, dpi=600, fig.width = 8}
library(ggplot2)
x <- poly(1:10000, degree = 6)
df <- polypoly::poly_melt(x)
df$dg <- as.numeric(df$degree)
ggplot(df) +
aes(x = observation, y = value, color = dg, group = dg) +
geom_line(size = 1) +
viridis::scale_color_viridis(option = "viridis") +
theme_void() +
guides(color = "none") +
coord_cartesian(xlim = NULL, ylim = NULL, expand = FALSE)
```
# polypoly
<!-- badges: start -->
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/polypoly)](https://cran.r-project.org/package=polypoly)
[![R-CMD-check](https://github.com/tjmahr/polypoly/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tjmahr/polypoly/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
Helper functions for polynomials created by `poly()`.
## Installation
Install the latest release of polypoly from CRAN:
```{r cran-installation, eval = FALSE}
install.packages("polypoly")
```
Or install the developmental version from Github:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("tjmahr/polypoly")
```
```{r, child = "vignettes/overview.Rmd"}
```