[R] XYZ data

David Winsemius dwinsemius at comcast.net
Thu Jun 27 02:53:12 CEST 2013


On Jun 26, 2013, at 5:04 PM, Aaron Mackey wrote:

> for plotting purposes, I typically jitter() the x's and y's to see the
> otherwise overlapping data points

That is one method for relatively sparse data. Also availble are the use of transparent colors, 2d-density estimators, and binned hex plots.

> -Aaron
> 
> On Wed, Jun 26, 2013 at 12:29 PM, Shane Carey <careyshan at gmail.com> wrote:
> 
>> Nope, neither work. :-(

Well, they "worked" ... :-( ... but you have not define "what you wanted".

Please read the Posting Guide (and the linked material that details how to ask questions that "work".
-- 
David.
>> 
>> 
>> On Wed, Jun 26, 2013 at 5:16 PM, Clint Bowman <clint at ecy.wa.gov> wrote:
>> 
>>> John,
>>> 
>>> That still leaves a string of identical numbers in the vector.
>>> 
>>> Shane,
>>> 
>>> ?jitter
>>> 
>>> perhaps jitter(X,1,0.0001)
>>> 
>>> Clint
>>> 
>>> Clint Bowman                    INTERNET:       clint at ecy.wa.gov
>>> Air Quality Modeler             INTERNET:       clint at math.utah.edu
>>> Department of Ecology           VOICE:          (360) 407-6815
>>> PO Box 47600                    FAX:            (360) 407-7534
>>> Olympia, WA 98504-7600
>>> 
>>>        USPS:           PO Box 47600, Olympia, WA 98504-7600
>>>        Parcels:        300 Desmond Drive, Lacey, WA 98503-1274
>>> 
>>> On Wed, 26 Jun 2013, John Kane wrote:
>>> 
>>> mm  <-  1:10
>>>> nn  <- mm + .001
>>>> 
>>>> John Kane
>>>> Kingston ON Canada
>>>> 
>>>> 
>>>> -----Original Message-----
>>>>> From: careyshan at gmail.com
>>>>> Sent: Wed, 26 Jun 2013 16:48:34 +0100
>>>>> To: r-help at r-project.org
>>>>> Subject: [R] XYZ data
>>>>> 
>>>>> I have x, y, z data. The x, y fields dont change but Z does. How do I
>> add
>>>>> a
>>>>> very small number onto the end of each x, y data point.
>>>>> 
>>>>> For example:
>>>>> 
>>>>> Original (X)              Original (Y)                 Original (Z)
>>>>> 15                               20                              30
>>>>> 15                               20                              40
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> New (X)              New (Y)                 New (Z)
>>>>> 15.00001             20.000001              30
>>>>> 15.00002             20.000002              40
>>>>> 
>>>>> 
>>>>> Thanks
>>>>> --
>>>>> Shane
>>>>> 
>>>>>        [[alternative HTML version deleted]]
>>>>> 
>>>>> ______________________________**________________
>>>>> R-help at r-project.org mailing list
>>>>> https://stat.ethz.ch/mailman/**listinfo/r-help<
>> https://stat.ethz.ch/mailman/listinfo/r-help>
>>>>> PLEASE do read the posting guide
>>>>> http://www.R-project.org/**posting-guide.html<
>> http://www.R-project.org/posting-guide.html>
>>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>> 
>>>> 
>>>> ______________________________**______________________________
>>>> FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
>>>> 
>>>> ______________________________**________________
>>>> R-help at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/**listinfo/r-help<
>> https://stat.ethz.ch/mailman/listinfo/r-help>
>>>> PLEASE do read the posting guide http://www.R-project.org/**
>>>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>> 
>>>> 
>> 
>> 
>> --
>> Shane
>> 
>>        [[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.
>> 
> 
> 	[[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
Alameda, CA, USA



More information about the R-help mailing list