Data visualization in R: Axis position

A standard plot provides an x-axis on the bottom and a y-axis on the left side. It is also possible to change the position of these axes. The position can be passed as parameter. The following example will create a plot without axes and then we add two axes, one at the top and the other one on the left side.

plot(1,2, xaxt=’n‘, yaxt=’n‘, ann=FALSE)
axis(3)
axis(4)
 

R12_a

Werbung
Dieser Beitrag wurde unter R veröffentlicht. Setze ein Lesezeichen auf den Permalink.

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit deinem WordPress.com-Konto. Abmelden /  Ändern )

Facebook-Foto

Du kommentierst mit deinem Facebook-Konto. Abmelden /  Ändern )

Verbinde mit %s