Re: [R] R-help Digest, Vol 121, Issue 5

2013-03-26 Thread Kerry
iginal Message- Date: Mon, 04 Mar 2013 10:48:39 -0500 From: Duncan Murdoch Cc: "r-help@r-project.org" Subject: Re: [R] Mysterious issues with reading text files from R in     ArcGIS and Excel Message-ID: <5134c257.6020...@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; fo

Re: [R] Mysterious issues with reading text files from R in ArcGIS and Excel

2013-03-05 Thread Kerry
I appreciate the help and suggestions.  I was afraid that this question would be considered "off topic", but thought I would give it a try to see if anyone else gets these results from R output files.  As I do not know what a hex editor or hexbin are I guess I will not be able to continue this d

Re: [R] Mysterious issues with reading text files from R in ArcGIS and Excel

2013-03-04 Thread Kerry
that were generated from using the write.table or write.csv. Any thoughts at to explain why I get 2 new columns of data in either the CSV format or the TXT format?   ~K On 04/03/2013 10:52 AM, Kerry wrote: > Here's the first 5 lines of my dataset: >

Re: [R] Mysterious issues with reading text files from R in ArcGIS and Excel

2013-03-04 Thread Kerry
"id", "x", "y",  "date", "R1dmed", "R1dmean", "R1error", "R2error"), row.names = c(NA,  5L), class = "data.frame") and here's the code I wrote for this file: write.table(test, "D:/MooseEncounters

[R] Mysterious issues with reading text files from R in ArcGIS and Excel

2013-03-04 Thread Kerry
It seems within the last ~3 months Ive been having issues with writing text or csv files from a R data frame.  The problem is multifold and it is hard to filter  out what is going on and where the problem is.  So, Im hoping someone else has come across this and may provide insight.   My curre

[R] Help understanding cutree used for Dunn Index

2011-12-08 Thread Kerry
Basic question: Is it correct to assume that when using cutree to set the # clusters (say k=4), cutree determines the clusters by the largest distances among all potential clusters? I've read the R help for cutree and am using it to define the number of groups to obtain Dunn Index scores (using c

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-21 Thread Kerry
Beautiful! It works perfectly, thanks! kb On Oct 21, 7:42 am, Jim Lemon wrote: > On 10/21/2011 06:25 AM, Kerry wrote: > > > Can someone please help me out with this? The ggplot2 suggestion works > > great but I've spent a few days trying to figure out how to plot 2 > &

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-21 Thread Kerry
   values = mycols) > > You can always use the labels = argument of scale_colour_manual() to > assign more evocative legend values, or equivalently, you can assign > the labels in the cut() function within d3 and d4 to those you want in > the legend and leave the plot code as is. &g

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-20 Thread Kerry
If it would help get any assistance with my issue, here's another method I'm trying (using R sample data): ggplot(mtcars, aes(disp)) + geom_point(aes(y = mpg, colour = qsec))+ scale_colour_gradient(low="yellow", high="green")+ geom_point(aes(y = cyl, colour = qsec))+ scale_colour_gradient(low=

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-20 Thread Kerry
m(100) d1 <- data.frame(x1,y1,z1) dg1 <-qplot(x1,y1,colour=z1,data=d1) dg1 + scale_colour_gradient(low="green", high="yellow") I've been trying to get long format working but it just doesn't make any sense to me. Thanks, kb On Oct 17, 3:10 pm, Kerry wrote: >

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
n, kb On Oct 2, 10:42 pm, Ben Bolker wrote: > Duncan Murdoch gmail.com> writes: > > > > > > > > > > > > > On 11-10-02 1:11 PM, Kerry wrote: > > > I have 3 columns of data and want to plot each row as a point in a > > > scatter plot

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
ata=d1) dg1 + scale_colour_gradient(low="green", high="yellow") Thanks, kb On Oct 2, 10:42 pm, Ben Bolker wrote: > Duncan Murdoch gmail.com> writes: > > > > > > > > > > > > > On 11-10-02 1:11 PM, Kerry wrote: > > > I hav

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
Murdoch gmail.com> writes: > > > > > > > > > > > > > On 11-10-02 1:11 PM, Kerry wrote: > > > I have 3 columns of data and want to plot each row as a point in a > > > scatter plot and want one column to be represented as a color gradient &g

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-17 Thread Kerry
Thanks, I consider all of those options and tried some, but the z=color gradient seems the best option for my data. kb On Oct 2, 10:42 pm, Ben Bolker wrote: > Duncan Murdoch gmail.com> writes: > > > > > > > > > > > > > On 11-10-02 1:11 PM, Kerry w

Re: [R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Kerry
Yes, perfect! This I can work with. Thanks, KB On Oct 2, 3:55 pm, Duncan Murdoch wrote: > On 11-10-02 1:11 PM, Kerry wrote: > > > I have 3 columns of data and want to plot each row as a point in a > > scatter plot and want one column to be represented as a color gradien

[R] Scatterplot with the 3rd dimension = color?

2011-10-02 Thread Kerry
I have 3 columns of data and want to plot each row as a point in a scatter plot and want one column to be represented as a color gradient (e.g. larger values being more red). Anyone know the command or package for this? Thanks, KB __ R-help@r-project.o

[R] joining data based upon a moving time window?

2011-04-11 Thread Kerry
I have weather data that was recorded every hour, and location data (X,Y) that was recorded every 4 hours. I want to know what the temperature was at location X,Y. The weather data isn't exactly at the same time. So, I have written this loop for every location to scan through the weather

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Kerry
ut it, but I didn't want to assume any steps that the R version of k-s test takes). I plan to explore the ideas and run the simulations you sent in full over the weekend. Thanks again! Kerry On Nov 11, 12:05 pm, Greg Snow wrote: > Consider the following simulations (also fixing the pno

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Kerry
> > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Kerry > > Sent: Wednesday, November 10, 2010 9:23 PM > > To: r-h...@r-project.org > > Subject: [R] Kolmogorov Smirnov Test &g

[R] Kolmogorov Smirnov Test

2010-11-10 Thread Kerry
I'm using ks.test (mydata, dnorm) on my data. I know some of my different variable samples (mydata1, mydata2, etc) must be normally distributed but the p value is always < 2.0^-16 (the 2.0 can change but not the exponent). I want to test mydata against a normal distribution. What could I be doing