library(ade4)
library(adegraphics)

set.seed(2564)
df <- data.frame(x = rep(1:10,1), 
                 y = rep(1:10, each = 10), 
                 ms_li = runif(100, min = -5, max = 4))

How to personalize plots

How to update title axes?

s.value(df[, 1:2], df$ms_li, 
        paxes.draw = TRUE)

Size titles on axes

xlab.cex and ylab.cex manage the size titles on the x and y axes.

s.value(df[, 1:2], df$ms_li, 
        paxes.draw = TRUE,
        xlab = "Longitude", xlab.cex = 0.5,
        ylab = "Latitude", ylab.cex = 0.5
        )

Size labels on axes

scales.x.cex and scales.y.cex manage the sizes labels on the x and y axes.

s.value(df[, 1:2], df$ms_li, 
        paxes.draw = TRUE,
        scales.x.cex = 0.5,
        scales.y.cex = 0.5
        )

Margin of axis

layout.heights = list(bottom.padding = 1) manages the margin of the bottom axis. This enlarges the space for a larger title axis.

s.value(df[, 1:2], df$ms_li, 
        paxes.draw = TRUE,
        xlab = "Longitude", xlab.cex = 2,
        ylab = "Latitude", ylab.cex = 2,
        layout.heights = list(bottom.padding = 2)
        )


sdray/adegraphics documentation built on March 29, 2024, 11:50 p.m.