[R] smoothing plot(x, type ='l')
Federico Calboli
f.calboli at imperial.ac.uk
Wed Jun 7 13:13:12 CEST 2006
Prof Brian Ripley wrote:
> It I understand you aright, that is done by par(lend) but the default is
> "round". So maybe your graphics device (unstated) on your OS (unstated)
> does not support this.
graphics device = X11 (xserver-xorg)
OS = Debian GNU/Linux, Kernel 2.4.27-2-686-smp
>
> We need more details, and preferably a simple reproducible example.
s.off.dist
[1] 27 26 15 7 32 50 31 19 1 11 8 4 4 5 11 28 4 32 5 39 15 32 3 3 4
[26] 1 2 2 22 1 23 4 2 8 40 14 42 3 1 4 3 4 4 6 2 29 4 8 5 9
[51] 37 2 1 13 13 35 6 9 2 5 31 10 7 1 4 22 3 23 4 10 8 57 1 6 1
[76] 1 4 10 16 3 12 3 10 8 10 11 16 19 5 5 9 9 3 4 1 8 3 12 3 65
[101] 1 7 21 7 2 4 35 15 6 2 6 4 1 14 4 10 24 3 4 3 2 4 11 4 7
[126] 13 7 1 6 2 4 16 3 13 66 10 4 7 2 17 6 4 3 5 6 8 3 3 10 19
[151] 7 3 17 6 6 6 2 9 5 4 4 18 2 3 17 43 22 12 1 3 1 9 3 5 1
[176] 2 5 36 12 23 1 8 10 6 7 19 5 13 2 5 3 9 3 1 12 4 5 3 6 3
[201] 5 1 1 16 6 12 1 5 4 2 2 4 9 9 3 11 7 4 8 14 5 17 3 3 15
[226] 2 4 2 11 13 1 19 7 4 3 20 2 8 5 2 3 4 2 5 5 10 1 9 10 8
[251] 4 4 2 1 3 5 3 1 4 5 13 12 6 5 4 3 10 5 4 1
plot(hist(s.off.dist, breaks = 'fd')$counts ~ hist(s.off.dist, breaks = 'fd')$m,
type = 'l')
I want the edges to look round, if at all possible.
Cheers,
Federico
--
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St Mary's Campus
Norfolk Place, London W2 1PG
Tel +44 (0)20 7594 1602 Fax (+44) 020 7594 3193
f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
More information about the R-help
mailing list