jeudi 8 janvier 2015

Combining image and Matrix functions to plot in R


Vote count:

0




I am plotting a matrix using the functions "image" and "Matrix", and I intend to change the font size of the figure. I notice that if I just use the image function, I can change the fonts by specifying the values of cex.main, cex.lab. However when I use both image and Matrix, I cannot change the font size:



B = matrix(rnorm(10000), 100, 100)
image(Matrix(B), ylab = c("a", "b", "c"), xlab = c("a", "b", "c"), cex.lab = 5,
main = "Title", cex.main = 7)
title("Title", cex.main = 2)


The resulted figure has the x labels and y labels as "a", "b", "c". It also as the title "Title". However, no matter what values the cex.lab or cex.main is, the font size of "a", "b", "c" and "Title" just would not change. Please help. Thanks.



asked 6 mins ago







Combining image and Matrix functions to plot in R

Aucun commentaire:

Enregistrer un commentaire