Skip to content

Commit b1b3b56

Browse files
committed
update with cran installation instructions + demo a stat-geom pair
1 parent 532013b commit b1b3b56

3 files changed

Lines changed: 45 additions & 14 deletions

File tree

README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](h
1414
coordinate systems, statistical transformations, and geometric
1515
constructions useful to the analysis and visualization of multivariate
1616
data, including bivariate generalizations of univariate tools and tools
17-
designed for geometric data analysis and ordination.
18-
19-
It is spun off from and designed to interoperate with
20-
[{ordr}](https://github.com/corybrunson/ordr). However, the two packages
21-
remain to be completely harmonized.
17+
designed for geometric data analysis and ordination. It is spun off from
18+
and designed to interoperate with
19+
[{ordr}](https://github.com/corybrunson/ordr).
2220

2321
## usage
2422

2523
### installation
2624

27-
{gggda} is not yet on CRAN and can be installed as follows using
25+
{gggda} is now on CRAN and can be installed in the standard way:
26+
27+
``` r
28+
install.packages("gggda")
29+
```
30+
31+
Or install the development version as follows using
2832
[{pak}](https://github.com/r-lib/pak):
2933

3034
``` r
@@ -69,7 +73,7 @@ ggplot(mpg, aes(displ, cty, color = drv, fill = drv)) +
6973
![](man/figures/README-stat-1.png)<!-- -->
7074

7175
Several new geometric constructions have a wide range of uses, including
72-
biplots, with two-dimensional errorbars an underused example:
76+
biplots, with two-dimensional errorbars being an underused example:
7377

7478
``` r
7579
# centroids with 2-standard deviation bars for both variables
@@ -80,6 +84,18 @@ ggplot(mpg, aes(displ, cty, color = factor(cyl))) +
8084

8185
![](man/figures/README-geom-1.png)<!-- -->
8286

87+
Finally, some stats and geoms are designed to work as pairs, most
88+
notably the bagplot layer modeled on the boxplot in {ggplot2}:
89+
90+
``` r
91+
# faceted bagplots
92+
ggplot(mpg, aes(displ, hwy, color = drv, fill = drv)) +
93+
facet_wrap(vars(drv)) +
94+
stat_bagplot()
95+
```
96+
97+
![](man/figures/README-pair-1.png)<!-- -->
98+
8399
## acknowledgments
84100

85101
### contribute
@@ -98,4 +114,5 @@ Conduct](https://github.com/corybrunson/gggda/blob/main/CODE_OF_CONDUCT.md).
98114

99115
Development of this package benefitted from the use of equipment and the
100116
support of colleagues at [UConn Health](https://health.uconn.edu/) and
101-
at [UF Health](https://ufhealth.org/).
117+
at [the University of Florida](https://www.ufl.edu/). See [the {ordr}
118+
repo](https://github.com/corybrunson/ordr) for detailed acknowledgments.

README.rmd

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,21 @@ devtools::load_all()
2121
<!-- badges: end -->
2222

2323
{gggda} extends [{ggplot2}](https://github.com/tidyverse/ggplot2) with coordinate systems, statistical transformations, and geometric constructions useful to the analysis and visualization of multivariate data, including bivariate generalizations of univariate tools and tools designed for geometric data analysis and ordination.
24-
2524
It is spun off from and designed to interoperate with [{ordr}](https://github.com/corybrunson/ordr).
26-
However, the two packages remain to be completely harmonized.
2725

2826
## usage
2927

3028
### installation
3129

32-
{gggda} is not yet on CRAN and can be installed as follows using [{pak}](https://github.com/r-lib/pak):
30+
{gggda} is now on CRAN and can be installed in the standard way:
31+
32+
```{r install cran, eval=FALSE}
33+
install.packages("gggda")
34+
```
35+
36+
Or install the development version as follows using [{pak}](https://github.com/r-lib/pak):
3337

34-
```{r install, eval=FALSE}
38+
```{r install github, eval=FALSE}
3539
pak::pkg_install("corybrunson/gggda")
3640
```
3741

@@ -63,7 +67,7 @@ ggplot(mpg, aes(displ, cty, color = drv, fill = drv)) +
6367
stat_center(fun.ord = depth_median)
6468
```
6569

66-
Several new geometric constructions have a wide range of uses, including biplots, with two-dimensional errorbars an underused example:
70+
Several new geometric constructions have a wide range of uses, including biplots, with two-dimensional errorbars being an underused example:
6771

6872
```{r geom}
6973
# centroids with 2-standard deviation bars for both variables
@@ -72,6 +76,15 @@ ggplot(mpg, aes(displ, cty, color = factor(cyl))) +
7276
geom_pointranges(fun.data = mean_sdl)
7377
```
7478

79+
Finally, some stats and geoms are designed to work as pairs, most notably the bagplot layer modeled on the boxplot in {ggplot2}:
80+
81+
```{r pair, fig.height=3}
82+
# faceted bagplots
83+
ggplot(mpg, aes(displ, hwy, color = drv, fill = drv)) +
84+
facet_wrap(vars(drv)) +
85+
stat_bagplot()
86+
```
87+
7588
## acknowledgments
7689

7790
### contribute
@@ -85,4 +98,5 @@ Conduct](https://github.com/corybrunson/gggda/blob/main/CODE_OF_CONDUCT.md).
8598

8699
Development of this package benefitted from the use of equipment and the
87100
support of colleagues at [UConn Health](https://health.uconn.edu/) and
88-
at [UF Health](https://ufhealth.org/).
101+
at [the University of Florida](https://www.ufl.edu/).
102+
See [the {ordr} repo](https://github.com/corybrunson/ordr) for detailed acknowledgments.

man/figures/README-pair-1.png

33.5 KB
Loading

0 commit comments

Comments
 (0)