README.md

ggsymbol: symbols layer based on ggplot2 and ggstar

To create symbol layer, I developed this package. It integrated the shapes of ‘R base’ and some regular polygon shapes of ‘ggstar’. It was built with the merits of ‘ggplot2’ that was based on the grammar of graphics. So it can be easily used.

The shapes of 0-25 and 33-127 are from pointsGrob of grid, the 26-32 are from starGrob of ggstar.

This package will be deprecated, because it is too slow, especially for big datasets. Some shapes of pointsGrob also has been developed by ggstar, it is faster than ggsymbol, so it will be developed and maintained in the future.

:writing_hand: Author

Shuangbin Xu

School of Basic Medical Sciences, Southern Medical University

:arrow_double_down: Installation

Get the development version from github:

if (!requireNamespace("devtools", quietly=TRUE))
    install.packages("devtools")
devtools::install_github("xiangpin/ggsymbol")

:beginner: Usage

library(ggplot2)
library(ggsymbol)
p3 <- ggplot(data=iris,
             mapping=aes(x=Petal.Length,
                         y=Petal.Width,
                         fill=Species,
                         symbol=Species)) +
      geom_symbol() + scale_symbol_manual(values=c(27, 23, 21))
p3

:sparkling_heart: Contributing

We welcome any contributions! By participating in this project you agree to abide by the terms outlined in the Contributor Code of Conduct.



xiangpin/ggsymbol documentation built on Aug. 18, 2020, 3:33 p.m.