mtennekes / treemap

R package for treemap visualisation
64 stars 24 forks source link

Legend Reverse Order #48

Closed dalekube closed 3 years ago

dalekube commented 5 years ago

I am using treemap in a Shiny app using the following parameters:

type="dens" algorithm="pivotSize" sortID="-size"

The rectangles in the treemap are ordered by size from left to right with the biggest rectangles on the left. However, the legend is shown from right to left with the largest index values show on the right side of the scale. I would like to reverse the order of the legend so the scale aligns to the treemap.

I don't see any existing method for accomplishing this. Am I overlooking something?

GiGAntia1 commented 4 years ago

hello there