On Sunday 12 June 2005 00:17, Timothy H. Keitt wrote: > On Sun, 2005-06-12 at 00:07 +0100, Marcus D. Hanwell wrote: > > On Saturday 11 June 2005 23:21, Timothy H. Keitt wrote: > > > You can get publication quality plots from R with a bit of wrestling. > > > I've had good luck with it for quite complicated plots. First do > > > 'help(par)' and read carefully. The 'xlim' and 'ylim' parameters > > > usually work fine -- I've not seen values outside the given range. Can > > > you post your plot command? Also check out the 'lattice' package. There > > > are some R - graphics guides on the web that may help. > > > > My plot command is as follows, > > > > plot(test[[1]],test[[3]],type="l",xlab="Time (s)", ylab="Current (mA)", > > col="black", las=1, xlim=c(30,1000)) > > > > It still decides to show 0 and a little below, and then 1000 and a little > > above. May be there is some setting to tighten up the axes? Also need to > > display the axes labels more concisely using scientific notation. I have > > put a problem plot on the web so you can see the results, > > > > http://dev.gentoo.org/~cryos/test.png > > It is actually using your xlim. The default axis type leaves some > padding (white space) at the ends. (Notice that the plot line _does_ end > at c(30, 1000).) Try: plot(..., xaxs = "i") to eliminate the padding. > > For customized axis labels, try plot(..., axes = F) and then use the > "axis" command to generate the axes. You can specify exactly where you > want the ticks to occur and what text gets placed next to them. > Thanks to some tips from you I seem to have it behaving much better now. I will try to at least write this paper and the corresponding poster using graphs generated by R. The analysis aspect is great - it is just tweaking it enough to get the graphics I need out of it.
Thanks for the pointers, Marcus -- Gentoo Linux Developer Scientific Applications | AMD64 | KDE | net-proxy
pgp7MC8sh71hB.pgp
Description: PGP signature
