How to create user-defined axis ticks using the axis() function in the R programming language. More details: https://statisticsglobe.com/r-axis-fu...
R code of this video:
plot(1:100) # Default plot
plot(1:100, # Plot without axes
xaxt = "n",
yaxt = "n")
axis(side = 1, # Draw x-axis
c(0, 25, 50, 75, 100))
axis(side = 2, # Draw y-axis
c(10, 50, 90))
plot(1:100, # Plot without axes
xaxt = "n",
yaxt = "n")
axis(side = 3, # Add axis on top
c(0, 25, 50, 75, 100))
axis(side = 4, # Add axis on right side
c(10, 50, 90))
plot(1:100, # Plot without axes and borders
axes = FALSE)
axis(side = 1, # Add x-axis
c(0, 25, 50, 75, 100))
axis(side = 2, # Add y-axis
c(10, 50, 90))
Follow me on Social Media:
Facebook – Statistics Globe Page: / statisticsglobecom
Facebook – Group for Discussions & Questions: / statisticsglobe
LinkedIn – Statistics Globe Page: / statisticsglobe
LinkedIn – Group for Discussions & Questions: / 12555223
Twitter: / joachimschork
Music by bensound.com