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 byggstar
, it is faster thanggsymbol
, so it will be developed and maintained in the future.
School of Basic Medical Sciences, Southern Medical University
Get the development version from github
:
if (!requireNamespace("devtools", quietly=TRUE))
install.packages("devtools")
devtools::install_github("xiangpin/ggsymbol")
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
We welcome any contributions! By participating in this project you agree to abide by the terms outlined in the Contributor Code of Conduct.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.