mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
add snippet for returnPallette
This commit is contained in:
parent
e344473f7d
commit
89a26f4af9
1 changed files with 5 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ snippet ggtheme
|
||||||
|
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
|
snippet returnPalette
|
||||||
|
source('https://raw.githubusercontent.com/dchakro/shared_Rscripts/main/returnPalette.R')
|
||||||
|
colors <- returnPalette(ColorVariable = ${1:Variable}, GNE.colors = F, jumble = T)
|
||||||
|
${0}
|
||||||
|
|
||||||
snippet ggarea
|
snippet ggarea
|
||||||
ggplot(data=${1:longDF}, aes(x=${2:orderedVar2}, y=${3:plottingValue})) +
|
ggplot(data=${1:longDF}, aes(x=${2:orderedVar2}, y=${3:plottingValue})) +
|
||||||
geom_area(alpha=1, color="black", aes(fill=${4:fill.order}), position=position_fill(reverse = T)) +
|
geom_area(alpha=1, color="black", aes(fill=${4:fill.order}), position=position_fill(reverse = T)) +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue