Re: [R] Circular plot - polar plot code questions

2023-04-25 Thread Bruce Miller
Thanks yo Tim and Jim for useful suggestions re: my query on circular plots. Rethinking my goal, it appears Jim's suggestion of alternative linear plots make more sense and likley more intuitive for reader. Bruce __ R-help@r-project.org mailing

[R] Circular plot - polar plot code questions

2023-04-24 Thread Bruce Miller
Hi all... I assume there are a host of GGplot2 users out there. I have circular plot - polar plot code questions I needed to create circular – polar plots of reproductive status for bats.  I found a great sample of how to do this here:

[R] How to replace NA values

2013-07-28 Thread Bruce Miller
Hi all, I am using reshape2 to reformat a data frame and all is great using: Bats.melt - melt(data = Bats) Bats.cast - dcast(data = Bats.melt, formula = Species ~ Location) dput(Bats.cast,'C:/=Bat data working/Nica_new/Bats_niche.robj') write.csv(Bat.cast,'C:/=Bat data

[R] reshape2 issue

2013-06-05 Thread Bruce Miller
Hi all, I am revisiting using reshape2 to aggregate critter (bats) occurrences by time blocks and have the final output for each row sum a percentage such that the row sums total 1 (100%). Reshape2 library is loaded on start. The old code I had stored in NotePad++ seems to no longer work as I

[R] How does one set up logical functions?

2013-05-07 Thread Bruce Miller
Hi all, I am trying to set up logical function(s) to deal with two adjustments to a blood glucose value. I have been dinking around in Excel and assume this will be much easier in R. DF is date-time, BG value in mg/dL,test strip 4/3/13 19:20105 Aviva-491350 4/4/13 21:0374

[R] Reshape or Plyr?

2013-04-20 Thread Bruce Miller
H all, I have relative abundance data from 100 sites. This is from acoustic monitoring and usually the data is for 2-3 nights but in some cases my be longer like months or years for each location.. The data output from my management data base is proved by species by night for each location so

[R] Query on package to use for investment quotes

2013-01-28 Thread Bruce Miller
Hi all, Diverging from my research based number crunching I am interested to see what, if any R packages are out there that can access daily market values of investment funds (e.g. using http://quote.morningstar.com/fund/f.aspx?t=PDMIX) then store the data value (i.e. NAV =$11.56 ) with date

[R] Are there any package for sub-sampling data

2012-07-30 Thread Bruce Miller
Hi all, I need to sub sample some large data sets. The problem is using complete data samples for bats that are ± data per 1-minute time blocks using acoustic data collection and a method I published some time back. Miller, B. W. 2001. A method for determining relative activity of free flying

[R] Reshape2 sytax

2011-08-08 Thread Bruce Miller
Hi Hadley et all, I am struggling with reshape2 and melt works and melt_check (filtered151) seems fine My cast command was acast (filtered151, Time ~ Species ~ Number) melt_check (filtered151) Using time, Species as id variables $id [1] timeSpecies $measure [1] Number When I execute

[R] Anyone free to take a data format question for Reshape2?

2011-08-07 Thread Bruce Miller
I need to reformat long data into a wide format (matrix for another program) but it does not seem straight forward. Can not seem to get it to work since some data elements are strings. Anyone have time to look at the issue? Tnx Bruce -- Bruce W. Miller, Ph.D. Conservation Ecologist

[R] Best package suggestion

2011-06-16 Thread Bruce Miller
Hi all, What is the best package to use to evaluate correlations between events by time (species co-occurrence). Chron? I would like to determine fi there is any solid relationship between the occurrence of critter A given critter B is present at a given time frame. Bruce