Skip to content

Instantly share code, notes, and snippets.

@SwampThingPaul
Created January 2, 2022 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SwampThingPaul/244ef5e16dcbdb43aaf7bfadfce36e97 to your computer and use it in GitHub Desktop.
Save SwampThingPaul/244ef5e16dcbdb43aaf7bfadfce36e97 to your computer and use it in GitHub Desktop.
b2=seq(-100,500,20)
pal2=c(colorRampPalette(c("blue","grey90"))(length(b2[b2<0])),
colorRampPalette(c("grey90",'red'))(length(b2[b2>0])))
plot(1:length(pal2),pch=21,cex=2,bg=pal2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment