How to set limits for the upper x-axis in PLSDA biplot?

Hi all,

How can I set the limits for the upper x-axis in the PLSDA biplot?
As you can see in the picture, all of the arrows are clustered in the middle of the plot. I want to set the limit for the upper x-axis to c(-0.3,0.3), so that the arrows can spread out.

I try xlim(-0.3,0.3) but it does not work.

Best regards,
Tuan Nguyen

Currently there is no way to directly control the x axis limits with biplot(). Seeing as you’re trying to capture all the feature arrows, I’d recommend just using the plotVar() function. It’s easier, more customisable and will give you what you want!