Answers for "change the font of the title in a plot in r"

R
0

change the font of the title in a plot in r

x<-1:10; y<-x*x
plot(x,y, main = "", xlab="", ylab="",
     col.axis="blue", type="l") 
title(main = "Main title", sub = "Sub-title",
      xlab = "X axis", ylab = "Y axis",
      cex.main = 2,   font.main= 4, col.main= "red",
      cex.sub = 0.75, font.sub = 3, col.sub = "green",
      col.lab ="darkblue"
      )
Posted by: Guest on August-25-2020

Code answers related to "change the font of the title in a plot in r"

Browse Popular Code Answers by Language