Stacked histogram with bivariate colored bars in R

André Ourednik, Wednesday, March 22, 2017

Stacked histogram in R

A histogram gives you counts of elements within spefic ranges of a variable, represented as bars. Sometimes, you want to see more then bars. The following code allows you to represent a second variable with a color shade:

  •  
  •  
  •  
  •  
  •  
  •  
Cite as: André Ourednik (2017) « Stacked histogram with bivariate colored bars in R » in Maps and Spaces from https://ourednik.info/maps/2017/03/22/stacked-histogram-with-bivariate-colored-bars-in-r/ [Last-seen June 21st 2018].
Category: Courses, Tools