[R] Extract latitude and longitude from several geottaged jpeg files

2015-04-24 Thread Alejo C.S.
Hi all, I have several jpeg files with lat long information. I want to make a lat long table whit this info. Anyone knows how to do it? Can't find anything in google. Thanks a lot in advance A. [[alternative HTML version deleted]] __

[R] Convert color hex code to color names

2015-04-13 Thread Alejo C.S.
Hi all, I want to convert the output of: rainbow(6) [1] #FFFF #00FF #00FF00FF #00FF # #FF00 To a vector of color names. Any tip? Thanks in advance C. [[alternative HTML version deleted]] __ R-help@r-project.org

[R] How to match text string ith spaces

2014-05-07 Thread Alejo C.S.
Hi all, I have a data frame with names that in some cases have blank spaces: TABLE$place [1] La Blanqueada La Blanqueada La Blanqueada La Blanqueada La Blanqueada [6] La Blanqueada La Blanqueada Sargento Ponce Sargento Ponce La Blanqueada [11] La Blanqueada Sargento Ponce La Blanqueada

Re: [R] How to match text string ith spaces

2014-05-07 Thread Alejo C.S.
Ok, an extra blank space at the end was the problem. I missed it. Cheers, 2014-05-07 9:05 GMT-03:00 Alejo C.S. alej@gmail.com: Hi all, I have a data frame with names that in some cases have blank spaces: TABLE$place [1] La Blanqueada La Blanqueada La Blanqueada La Blanqueada

[R] About lm(y~1)

2014-04-28 Thread Alejo C.S.
Dear list, Reading a function I found this: lm ( y ~ 1 ) I know that Y ~ -1 + A is a straight-line with no y-intercept; that is, a fit forced through (0,0). But I never saw the first example. Any tip? Thanks in advance! C. [[alternative HTML version deleted]]

[R] Geomorph package: gpagen coordinates in tangent space?

2014-02-09 Thread Alejo C.S.
Hi all, first thanks for a so useful package! I have a question about gpagen. I understand that the resulting coordinates of this command are in shape space, so for statistical analisys one must project them to tangent space. But the command plotTangetSpace runs prcomp directly over gpagen's

[R] Vegan: how to plot sites labes in diversity plot

2011-11-24 Thread Alejo C.S.
Dear List, I can'f figure how to add point labels in the next plot (example from ?taxondive help page, from vegan package): library(vegan) data(dune) data(dune.taxon) taxdis - taxa2dist(dune.taxon, varstep=TRUE) mod - taxondive(dune, taxdis) plot(mod) The points in this plot are diversity

[R] Vegan: Diversity Plot, label points

2011-11-23 Thread Alejo C.S.
Dear List, I can'f figure how to add point labels in the next plot (example from ?taxondive help page): library(vegan) data(dune) data(dune.taxon) taxdis - taxa2dist(dune.taxon, varstep=TRUE) mod - taxondive(dune, taxdis) plot(mod) The points in this plot are diversity values of single sites,

[R] wind rose (oz.windrose) scale

2010-11-12 Thread Alejo C.S.
Dear list, I trying to make a wind rose plot whit the command oz.windrose, from plotrix package. My data, a matrix of percentages with the rows representing speed ranges and the columns indicating wind directions was generated using bin.wind.records command from same package: [,1] [,2]

[R] Plotting factors in biplots

2010-10-21 Thread Alejo C.S.
Dear list, I'm trying to make a biplot, but instead of plotting the row numbers for each observation, I'd like to plot a group factor. Example: prcomp(iris[,1:4]) - PCA biplot(PCA) #this makes a nice biplot but with row names Instead of row numbers I want to plot iris[,5], which is a factor.

[R] Biplot: plot group name instead of row number

2010-10-20 Thread Alejo C.S.
Dear list, I'm trying to make a biplot, but instead of plotting the row number for each observation, plot a group factor. Example: prcomp(iris[,1:4]) - PCA biplot(PCA) #this makes a nice biplot but with row names Instead of row numbers I want to plot iris[,5], which is a factor. I can do

Re: [R] Lattice: arbitrary abline in multiple histograms

2010-10-13 Thread Alejo C.S.
:) HTH, Dennis On Tue, Oct 12, 2010 at 6:13 PM, David Winsemius dwinsem...@comcast.netwrote: On Oct 12, 2010, at 8:21 PM, Alejo C.S. wrote: Dear list. I have three histograms and I want to add a vertical abline in a different place in each plot. The next example will plot a vertical

[R] Lattice: arbitrary abline in multiple histograms

2010-10-12 Thread Alejo C.S.
Dear list. I have three histograms and I want to add a vertical abline in a different place in each plot. The next example will plot a vertical line at x=5.5 in the three plots: rnorm(100,5,3) - A rnorm(100,7,3) - B rnorm(100,4,1) - C rep(c(A,B,C),each=100) - grp data.frame(G=grp,D=c(A,B,C)) -

[R] Lattice: Histogram in splom diagonals

2010-10-07 Thread Alejo C.S.
Dear list, I want to plot several variables with splom and in the main diagonal, instead of the variable names, I'd like to plot an histogram of corresponding variables. Searching I did not find the correct syntax, only some tips in an old post in the list, but this comments help to plot only

Re: [R] Lattice: Histogram in splom diagonals

2010-10-07 Thread Alejo C.S.
Dear David, it works just perfect. Thanks a lot for the help Sincerely, Alejo 2010/10/7 David Winsemius dwinsem...@comcast.net On Oct 7, 2010, at 9:04 AM, Alejo C.S. wrote: Dear list, I want to plot several variables with splom and in the main diagonal, instead of the variable names

[R] lattice: Set x-axis in italics only

2010-09-13 Thread Alejo C.S.
Dear list, I making some box-and-whisker plots in R with vertebrate data. The x axis are species names that must be in italics. I tried with the axis function but no luck, and it seems that affects both axes. Any tip? Thanks a lot in Advance. Alej __

Re: [R] lattice: Set x-axis in italics only

2010-09-13 Thread Alejo C.S.
the correct aspect of the plot, however: font.main, font.sub, font.lab or font.axis (from par()). HTH, Dennis On Mon, Sep 13, 2010 at 5:50 AM, Alejo C.S. alej@gmail.com wrote: Dear list, I making some box-and-whisker plots in R with vertebrate data. The x axis are species names that must

[R] plot discriminant analysis

2009-10-14 Thread Alejo C.S.
I'm confused on how is the right way to plot a discriminant analysis made by lda function (MASS package). (I had attached my data fro reproduction). When I plot a lda object : X - read.table(data, header=T) lda_analysis - lda(formula(X), data=X) plot(lda_analysis) #the above plot is completely

Re: [R] plot discriminant analysis

2009-10-14 Thread Alejo C.S.
(-10,10)) and all the points are superimposed. The only difference I found was the different x- and y-axis when I drew them separately, i.e. plot(z) plot(predict(z)$x, col=palette()[predict(z)$class]) Alain Alejo C.S. wrote: I'm confused on how is the right way to plot a discriminant

[R] wrong plot with fda or lda?

2009-10-09 Thread Alejo C.S.
Hi, I have a strange behavior of plot function when trying to plot a discriminant analysis obtained by fda. I'd attached the data for reproduction. I made the same analysis (linear discriminant analysis) but using lda and fda (default args, using polyreg). The resulting coefficients and trace