Dear all,
I am making a function for creating plots and part of this function is to change the labels to x axis that instead of number contains percentage number. I want to change the x axis to depict the percentage value of the presented data


x<-c(501:600)
y<-c(201:300)
plot(x,y,axes=F)
axis(2,labels=T)

text=round(seq(0,100,length.out=5),2) # make percentage bar
at=round(seq(min(x),max(x),length.out=5),2)
axis(1,at=at,labels=F)
mtext(text=text,side=1,line=1,at=at)



as you will see this is different from plot(x,y)
1. the x and y axis do not meet at their beginning , there is this small gap
2. there is no box border plotted compared to plot(x,y)

what I need to change to my code to make this happen?

Regards
Alex

	[[alternative HTML version deleted]]

