rOpenGov / geofi

R package for accessing Finnish geospatial data

Home Page:https://ropengov.github.io/geofi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ternary colors plots?

antagomir opened this issue · comments

Ternary color plots would be a very nice addition to gisfin set. @janikmiet has implemented this for Finnish maps. See also Github.

Package tricolore is needed for ternary color plots. Started writing a vignette for this which is based on current vignette.

Great!

As far as I could tell, this is now implemented here. Is it ok to close this issue?

Yes, issue can be closed. I don't have rights to do that.

@janikmiet Could you have a look at the vignette? The last code chunk gives an error

Error in titleGrob(label, x, y, hjust = hj, vjust = vj, angle = angle, : unused argument (expand_y = TRUE)

If I'm not mistaken, in the vignette code example, either the order of tric_dat keys needs to be changed here or ditto with the legend labs here (probably the latter). As it is now, age groups under_15 and over64 are backwards.

@tts Good that you noticed! You are correct.