Re: [R] Plot maps with R
Dear Alex Two other packages that create maps are: maps mapproj alaios wrote Dear all I would like to use R and make some maps. I want to have strict control, over the details of the produced map, like remove borders, city names, add markers, add labels. Is there any package apart Rgooglemaps that can do something like that? B.R Alex [[alternative HTML version deleted]] __ R-help@ 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. - --- Heather A. Wright, PhD candidate Ecology and Evolution of Plankton Stazione Zoologica Anton Dohrn Villa Comunale 80121 - Napoli, Italy -- View this message in context: http://r.789695.n4.nabble.com/Plot-maps-with-R-tp4284932p4285112.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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.
Re: [R] R endnote entry
1. May I suggest that you try Mendeley for bibliographic management 2. There are also citations for specific R packages when you download each version. Let's use the ade4 package as an example: http://cran.r-project.org/web/packages/ade4/index.html if you selection citation info the corresponding bibtex input has been provided. @Article{, title = {The ade4 package: implementing the duality diagram for ecologists}, author = {S. Dray and A.B. Dufour}, journal = {Journal of Statistical Software}, year = {2007}, volume = {22}, pages = {1-20}, number = {4}, } This is a reliable way to deal with references in other programs ie: LaTeX...etc. I save all my references as bibtex into mendeley and then have a subfolders for R analysis/methods that contain the package citations. Using a .txt (bibtex file made from the ade4 package citation), my inserted citation in a word document from Mendeley looks like this: (R Development Core Team, 2011) and the formal reference in the bibliography is: R Development Core Team. 2011. R: A Language and Environment for Statistical Computing. If however, you are still determined to use endnote, then you have 2 ways to configure your reference, manually add a reference by copy/paste the correct title from the citation, etc. Then configure your .ens style for the appropriate journal, etc. If you insert the citation and it becomes R.D.C.T then it's likely the original input is fine and you have to configure your style output. good luck! - --- Heather A. Wright, PhD candidate Ecology and Evolution of Plankton Stazione Zoologica Anton Dohrn Villa Comunale 80121 - Napoli, Italy -- View this message in context: http://r.789695.n4.nabble.com/R-endnote-entry-tp4126826p4127866.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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.
Re: [R] How to extract information from the following dataset?
I have the following data set, in a csv file, looks like the following: Jan 27, 2010 16:01:24,000 125 - - - Jan 27, 2010 16:06:24,000 125 - - - .. The first few columns are month, day, year, time with OS3 accuracy. And the last number is the measurement I need to extract. I wonder if there is a easy way to just take out the measurements only from a specific day and hour -- Xin Zhang Ph.D Candidate Department of Statistics University of California, Riverside --- I use strptime to configure the date format in my times series dataset. First check to see how the dates are read. For example: # check the structure str(your_file) 'data.frame' ...etc This tells me that my original date is a factor but not in POSIXlt format. #check your column dates head(your_file) [1] 1984-01-26 1984-02-09 1984-03-01 1984-03-15 1984-03-29 1984-04-12 These are discrete column dates. #convert your date format your_file$date- strptime(your_file$date,%m/%d/%Y) call ?strptime for options Example: For a specific day or hour, strptime would utilize: strptime(your_file$date,%d/%I) for day and hour. Once you extract the type of date format you want, run str(your_file) again to confirm the format change. Does this answer your question? Best, - --- Heather A. Wright, PhD candidate Ecology and Evolution of Plankton Stazione Zoologica Anton Dohrn Villa Comunale 80121 - Napoli, Italy -- View this message in context: http://r.789695.n4.nabble.com/How-to-extract-information-from-the-following-dataset-tp3516752p3516952.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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.