2016-04-27 109 views
1

我正在使用pairs函數來製作散點圖,如下圖所示。 enter image description here更改軸標籤對中的字體大小

我想增加軸標籤中數字的大小,但我不知道。我很感激任何人都可以幫忙。

您可以使用下面的指令生成樣地:

x <- matrix(rnorm(120*5),ncol=5) 
col <- c("#3ABEB0", "#DD96A4")[c(rep(1, 60), rep(2,60))] 
pairs(x, col = col, lower.panel = NULL, cex.labels=2, pch=19, cex = 0.8) 
+1

您可以使用參數'cex.axis'。見'?par' – Cath

回答

1

您可以使用cex.axis

library(colorspace) 
x <- matrix(rnorm(120*5),ncol=5) 
col <- (rainbow_hcl(2))[c(rep(1, 60), rep(2,60))] 
pairs(x, col = col, lower.panel = NULL, cex.labels=2, pch=19, cex = 0.8, cex.axis = 2) 
相關問題