tylermorganwall / rayshader

R Package for 2D and 3D mapping and data visualization
https://www.rayshader.com/
2.06k stars 214 forks source link

[New Feature Request] Can we allow the use of a separate height variable (not the default colour value) when rendering ggplot2? #162

Closed Kuan-Liu closed 3 years ago

Kuan-Liu commented 3 years ago

Can we allow the use of a separate height variable (not the default colour value) when rendering ggplot2?

I am hoping to create a rayshader plot that uses a separate continuous variable to specify the height of the 3D graph. Thank you so much. I am huge fan of your work!

tylermorganwall commented 3 years ago

You can do this by passing in a list of two ggplots, see the bottom of this gist:

https://gist.github.com/tylermorganwall/9dc6bc30a26a4e0465f16cdf2c3fbb88