[R] contours/density lines in sm library-more details

markhall@gol.com markhall at gol.com
Tue Jun 13 09:21:37 CEST 2000


> 
> (Um. So what device were you using?)
In terms of hardware, I'm using a Dell Latitude CPx (not quite sure
on the RAM, but the hard disk is 2GB and the server its linked to is
much larger...I'm running on the unit's hard drive though).  The printer
is an EPSON LP-9300.  I'm printing directly from the window one gets in
R by typing plot(...).

Another quick note, its Japanese Windows NT.
> 
> That example is given by sm.script(air_cont).  The solid contour is not
> quite closed on all platforms I tried, but the other two are. That includes
> rw1001 on NT.  The solid contour is also not closed on the S-PLUS original.

Same for me here.  I only wish mine came out that completely.

> 
> Either you have not followed the script exactly or there is problem
> specific to your graphics card / printer / ....

Okay, here are my scripts/commands:

> plot(ejpc13,type="n")
> sm.density(ejpc13[1:33,],display="slice",props=75,add=T,lty=1)
> sm.density(ejpc13[34:48,],display="slice",props=75,add=T,lty=2)
> sm.density(ejpc13[49:78,],display="slice",props=75,add=T,lty=3)
> plot(ejpc13,type="n")
> sm.density(ejpc13[1:33,],h=c(h1,h3),display="slice",props=75,add=T,lty=1)
> sm.density(ejpc13[34:48,],h=c(h1,h3),display="slice",props=75,add=T,lty=2)
> sm.density(ejpc13[49:78,],h=c(h1,h3),display="slice",props=75,add=T,lty=3)
> sm.density(ejpc13[79:92,],h=c(h1,h3),display="slice",props=75,add=T,lty=4)

h1=0.077 and h3=0.033

and my data (ejpc13):
> ejpc13
              [,1]          [,2]
 [1,] -0.166482970  0.0376114220
 [2,]  0.172039529  0.0606077410
 [3,] -0.055312912  0.0621272618
 [4,] -0.146606603 -0.0262722438
 [5,] -0.165141132 -0.0114435638
 [6,] -0.036404087 -0.0748347292
 [7,] -0.131319085 -0.1851480562
 [8,] -0.043480458 -0.1662565369
 [9,]  1.095361815 -0.1628025340
[10,] -0.342875377 -0.0019060132
[11,] -0.139769040 -0.0281562875
[12,] -0.096170337 -0.0122403928
[13,] -0.120493434  0.0319431603
[14,] -0.037960674 -0.0328983508
[15,]  0.001925312 -0.0410008519
[16,] -0.022066129  0.0001202776
[17,] -0.103598097  0.0287050455
[18,]  0.062953627 -0.0167279165
[19,] -0.093794426  0.0511500935
[20,] -0.004068660 -0.0494852071
[21,] -0.052341478  0.0164029246
[22,] -0.115068404  0.0937787921
[23,] -0.022907432  0.1867763406
[24,] -0.018616592  0.1405387523
[25,]  0.003385965  0.0436077595
[26,]  0.115057630  0.0975375282
[27,]  0.051676135 -0.0546240859
[28,]  0.054902747 -0.0247662045
[29,]  0.070856740  0.1070315753
[30,]  0.078718134 -0.0975193431
[31,] -0.055475743  0.1193172634
[32,]  0.098733759  0.0735257677
[33,] -0.083848906 -0.0228442946
[34,]  0.029517115  0.0576757519
[35,]  0.321735633 -0.0892735619
[36,]  0.040484817  0.1634120213
[37,]  0.007805298  0.1184341628
[38,]  0.323867941  0.0999328310
[39,]  0.070252271  0.0887157942
[40,]  0.207436995  0.0999097543
[41,]  0.018857400  0.1319081363
[42,]  0.139164436  0.1778550965
[43,]  0.096510043  0.1506291498
[44,]  0.449613433  0.1483359070
[45,]  0.153307064  0.1865578745
[46,]  0.426884801  0.0814994772
[47,]  0.044056147  0.0920010570
[48,]  0.121337160  0.1568828779
[49,]  0.100308515 -0.0076379727
[50,] -0.065385458  0.0084510130
[51,]  0.083712924 -0.1164728830
[52,]  0.106802978 -0.0483482599
[53,]  0.118823096 -0.0856422799
[54,]  0.022877888 -0.1209706735
[55,]  0.028781431  0.1040293368
[56,]  0.062372455  0.0204491310
[57,]  0.022977305  0.0845986685
[58,] -0.137248321  0.1025572694
[59,]  0.302886107 -0.0284665901
[60,]  0.182493864 -0.0616902008
[61,]  0.191977218 -0.0531218025
[62,]  0.683294363 -0.0597475193
[63,]  0.273973517 -0.0306391810
[64,]  0.089684187 -0.0105587683
[65,]  0.320136196  0.0195868396
[66,]  0.110121348  0.0619942246
[67,]  0.263206261 -0.0188989872
[68,]  0.481725463  0.0599807981
[69,]  0.310158534 -0.0246252788
[70,]  0.277589319 -0.0990982432
[71,]  0.115436270  0.0403414435
[72,]  0.161033522 -0.0270171595
[73,]  0.134733718  0.0209744472
[74,]  0.464513774 -0.0512113463
[75,]  0.350867550 -0.0011658557
[76,]  0.108355983 -0.0061438258
[77,] -0.041946856 -0.0914636608
[78,]  0.234162690  0.0275311876
[79,] -0.480863335 -0.0461602181
[80,]  0.225670078 -0.4214232638
[81,] -0.235316240 -0.0566610217
[82,] -0.144774441 -0.2432310632
[83,] -0.160769877 -0.2812935416
[84,] -0.302214611 -0.1743195862
[85,] -0.195576983 -0.2245673686
[86,]  0.207583631 -0.3203870173
[87,] -0.204168702 -0.0561583875
[88,] -0.252906614 -0.0501635007
[89,] -0.221128925 -0.2402042158
[90,]  0.215832721 -0.1842189849
[91,]  0.061694594 -0.1348768059
[92,]  0.159001022 -0.2267625060

> 
Any advice, etc. would be greatly appreciated.  even if its finding out
its the hardware on this end.

Thanks, Mark Hall



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list