Search code examples
rrgl

How to set rgl label colors


I am trying to set label colours to "black". However, when using rgl.triangles() with col="lightgray", the label text is also set to "lightgray" which is too light for the printed image. Is it possible to set the label text colour?


Solution

  • Your problem is in calling rgl.triangles(). If you call triangles3d() instead, it won't have the side effect of changing the default colour.