Skip to content

adrfantini/plot_discrete_cbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

OBSOLETE! Ggplot 3.3.0 introduced binned scales.

plot_discrete_cbar

Source with https://raw.githubusercontent.com/adrfantini/plot_discrete_cbar/master/plot_discrete_cbar.R

An R script to plot a discrete colour bar using ggplot2 such as this one: Example result

or the one at the bottom of this plot:

Example result 2

This was initially posted on StackOverflow, where you can find examples.

This topic has recently been discussed in a ggplot2 issue and pull request; these are probably much better approaches.

About

OBSOLETE! Use ggplot built in functions since 3.3.0

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages