# gglayer
**Repository Path**: swcyo/gglayer
## Basic Information
- **Project Name**: gglayer
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-09-05
- **Last Updated**: 2022-10-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## geom_cake
[
](https://guangchuangyu.github.io/cn/2017/12/geom-cake/)
## geom_ord_ellipse
[](https://guangchuangyu.github.io/cn/2018/01/geom-ord-ellipse/)
## geom_segment_c
see also .
```r
set.seed(2019-06-28)
d = data.frame(x = rnorm(10),
xend = rnorm(10),
y = rnorm(10),
yend = rnorm(10),
v1 = rnorm(10),
v2 = rnorm(10))
library(ggplot2)
library(gglayer)
ggplot(d) + geom_segment_c(aes(x = x, xend = xend, y=y, yend =yend, col0 = v1, col1 = v2)) +
scale_color_viridis_c(name = "continuous colored lines") +
theme_minimal() + theme(legend.position=c(.2, .85)) + xlab(NULL) + ylab(NULL)
```
[
](https://yulab-smu.github.io/treedata-book/chapter4.html#fig:continuousColor)