[R] Non-uniformly distributed plot

David Winsemius dwinsemius at comcast.net
Thu Dec 23 23:50:02 CET 2010


On Dec 23, 2010, at 5:37 PM, Eric Hu wrote:

> Hi,
>
> I would like to plot a linear relationship between variable x and y.  
> Can anyone help me with scaled plotting and axes so that all data  
> points can be visualized somehow evenly? Plaint plot(x,y) will  
> generate condensed points near (0,0) due to several large data  
> points. Thank you.
>
> Eric
>
>
>> x
> [1]  0.3497630  3.3948900  1.5224900  0.2690660  0.1078720   
> 0.0451689  0.5902680  0.2757550  0.7518450

Rather than offering data in this format, which would require  
stripping out all of the element numbering at the margins, why not  
learn to post with dput values:

dput(x)
dput(y)
# rather than
#x
#y

-- 
David
This message brought to you by the Committee for Better Posting  
Behavior.



> [10]  1.0059900  0.6524090  2.8066400  0.0269933  0.1373070   
> 0.2829390  1.2300800  0.4364290  0.0555626
> [19]  1.1062400 53.0000000  1.3041100  1.2974900 53.0000000   
> 3.2552000  1.1890000  2.2361600  1.1325900
> [28]  0.5050390  1.0581200  1.1823800  0.5009260  1.0314000   
> 0.7334680  3.1329200  1.2668500  3.1088200
> [37]  1.0171900  0.1309600  0.0529692  0.4184080  0.2132990   
> 0.5366310  1.8233600  1.1528700  0.1925190
> [46]  0.9612950 51.0000000  0.4705110  4.0568800  1.7809800   
> 0.3646860  1.2453300
>> y
> [1]  0.423279  0.473681  0.629478  1.097120  0.396239  0.273577   
> 0.303214  0.628386  0.465841
> [10]  0.687251  0.544569  0.635805  0.358983  0.165190  0.366217   
> 1.084210  0.668939  0.181861
> [19]  0.782656 13.381600  1.152560  0.965943 20.000000  2.860510   
> 0.304939  1.946540  0.967576
> [28]  0.647599  0.520811  1.274340  0.363666  0.936210  0.544573   
> 0.696733  1.003100  3.788950
> [37]  0.694053  0.289111  0.178439  0.746576  0.391725  0.363901   
> 1.202970  0.461934  0.364011
> [46]  0.691368 20.000000  0.819470  1.695940  1.563810  0.900398   
> 0.960948
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list