It seems that it is not possible to rotate xaxis labels with grid.xaxis(at=, lab=) , for example. 90 degrees using gpar -option.
grid.xaxis(at=, lab=)
gpar
Does anyone know a workaround besides creating separate viewports and using grid.text() ?
grid.text()
Check out this document: An example of interactive graphics in a grid
library("grid") gxa <- xaxisGrob(at = 1:4/5, vp = viewport(w = 0.5, h = 0.01)) gxa <- editGrob(gxa, gPath = "labels", gp = gpar(col = "black"), rot=90) grid.draw(gxa)
Try it,
grid.xaxis(seq(0,1,by=0.1), vp=viewport(y=1), edits = gEdit(gPath="labels", rot=90))
Source: https://habr.com/ru/post/1390389/More articles:IOS5 Can I change the text of the status bar Double-high? - iosUsing an adapter from another class / activity - javauninitialized move to std :: vector - c ++Building a quaternion in Matlab using "engine.h" from C ++ - matlabcustom split view for reading pages in webview - iosFinding the best method for Quatterion differentiaton - differentiationhow to create a new group on xmpp server - javascriptQt 4.8 beta and Mac OSX Lion, Phonon bug - c ++How to lock a directory in C on a Linux machine - linuxHow to add an existing folder to a Visual Studio 2010 Express project? - vb.netAll Articles