plot.margin . , hjust -10, plot.margin( , , , ).
, :
()
df <- data.frame(x=1:10, LongAxisLabel=1:10)
ggplot(df, aes(x,LongAxisLabel)) +
geom_line() +
theme(axis.title.y=element_text(angle=0, vjust=1, hjust=-1))+
theme(plot.margin = unit(c(1,1,1,1), "cm"))
Cheers,
. expression(), . . , , , - , . .
library(grid)
df <- data.frame(x=1:10, y=1:10)
ggplot(df, aes(x,y)) +
geom_line() +
theme(axis.title.y=element_text(angle=0, vjust=1, hjust=-1), plot.margin=unit(c(3,1,1,3), "cm")) +
labs(y=expression("This\nis a\nreally long\naxis\nlabel"))
