[R] no y-axis
Geophagus
fh at retposto.net
Tue Nov 13 13:01:07 CET 2012
Hi Jim and thanks for your answer.
It does not work how I want. When I use your proposal, the values are
superimposed like shown on the pic.
pic.png <http://r.789695.n4.nabble.com/file/n4649368/pic.png>
Thats my code (what I need is a y-scale with the following interrupts:
5,10,100,1000,5000):
plot(BE_UK_ABFG$year, BE_UK_ABFG$ammo,
type="s",
col= "#DB270F",
xaxt="n",
#yaxt="n",
ylim=c(0,5000),
xlab="",
ylab="",
main="Ammo Rep 1885b",
adj=0,
las = 1,
lwd=3,
bty="n"
)
abline(h=0:0, lwd=1, col="black")
abline(h=1000:1000, lwd=0.3, col="darkgray", lty="dashed")
abline(h=2000:2000, lwd=0.3, col="darkgray", lty="dashed")
abline(h=3000:3000, lwd=0.3, col="darkgray", lty="dashed")
abline(h=4000:4000, lwd=0.3, col="darkgray", lty="dashed")
abline(h=5000:5000, lwd=0.3, col="darkgray", lty="dashed")
lines (BE_UK_AW$year, BE_UK_AW$ammo, type="s", col= "#826A9F", lwd=3.5)
axis(1,at=seq(2007,2010))
mtext(c(5,10,100,1000,5000),at=c(5,10,100,1000,5000),side=2,line=1, las=1)
Thank you and best greetings
GeO
--
View this message in context: http://r.789695.n4.nabble.com/no-drawn-y-axis-but-values-tp4649298p4649368.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list