Is there a way to create multi-line labels for the y axis on the R plot?
I tried to add \nwhere the new line should be, but then the first line of the label is truncated:
l <- 10
plot(0:l, (0:l), type='l',
yaxt='n',
xlab='Index',
ylab='Cumulative sum\nof the sorted weights')

This happens both with tikzDeviceand inside RStudio. In addition, I tried some of the options par()with no luck. How to do it right?
(Lack of margin bothers me too ...)
source
share