Place the headline on the top of the site

Can I change the position of the "main" heading in the hatch line?

I need to put a generic title on the top of the plot.

DF.Rain.Sum <- c(1015, 1153, 1316, 1478)
Alt <- c(1350, 1700, 2000, 2300)

bplt <-barplot(DF.Rain.Sum  , main=" ",
    xlab="Sum of Rain (mm)", ylab="Altitude (m)", col=c("darkblue"), legend 
= rownames(Alt),beside=TRUE, names.arg=Alt , horiz=TRUE, xlim=c(0,2000), 
las=1)

title("a.", cex.main = 2,   font.main= 4, col.main= "blue")

      

+3


source to share


1 answer


Use adj parameter:

title("a.", cex.main = 2,   font.main= 4, col.main= "blue", adj=0)

      



enter image description here

+2


source







All Articles