Force R base plot to end on tick mark -


the powers demand plots end on tick marks. know can done in ggplot expand = c(0,0), how can using base r?

use xaxs , yaxs options,e.g.:

plot(1:3,1:3,xaxs='r',yaxs='r') 

?par says:

xaxs style of axis interval calculation used x-axis. possible values "r", "i", "e", "s", "d". styles controlled range of data or xlim, if given. style "r" (regular) first extends data range 4 percent @ each end , finds axis pretty labels fits within extended range. style "i" (internal) finds axis pretty labels fits within original data range. style "s" (standard) finds axis pretty labels within original data range fits. style "e" (extended) style "s", except ensures there room plotting symbols within bounding box. style "d" (direct) specifies current axis should used on subsequent plots. (only "r" , "i" styles have been implemented in r.)


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -