質問

ラベルの説明の使用説明XLABを使用する以外に異なるものを使用します。XLABを使用するとき(常にCEX引数を定義せずに)MTEXTラベルを常に同じサイズにするにはどうすればよいですか。下の最小の例では、両方の図についてCEX= cex.lab= 1です。しかしサイズは異なります。

layout(matrix(c(1,1,2,2), ncol=1))
op<-par(mar=c(4,4,2,1))
plot(1:10, xlab="", ylab="", main="This is my title")
mtext("this is the x-axis", side=1, line=2.75, cex=1)
mtext("this is the y-axis", side=2, line=2.5, cex=1)
plot(1:10,  xlab="this is smaller", ylab="this is smaller", main="This is my title", cex.lab=1)
par(op)
.

Enter Image説明

役に立ちましたか?

解決

レイアウトを使用する場合、cex=1plotの意味は異なりますが、そのアクティビティが個々のプロット領域の外側にあるため、MTEXTまで差異が延長すると予想されませんでした。2/3:

の予想係数を反転することで、cex内の "効果的な" -plotのデフォルトの減少を逆にすることができます。
layout(matrix(c(1,1,2,2), ncol=1))
op<-par(mar=c(4,4,2,1))
plot(1:10, xlab="", ylab="", main="This is my title")
mtext("this is the x-axis", side=1, line=2.75, cex=1)
mtext("this is the y-axis", side=2, line=2.5, cex=1)
plot(1:10,  xlab="this is _not_ smaller", 
            ylab="this is _not_ smaller, either", 
            main="This is my title", 
            cex.lab=3/2)
par(op)
.

さらに読む:

 ?par  # scroll down to mfcol, mfrow
.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top