Re: [R] Opposite color in R

2015-07-25 Thread ken knoblauch
peter dalgaard gmail.com> writes: > > > > On 25 Jul 2015, at 21:49 , Atte Tenkanen utu.fi> wrote: > > > > Hi, > > > > I have tried to find a way to find opposite or complementary colors in R. > > > > I would like to form a color circle with R like this one: http://nobetty.net/dandls/ col

[R] ggplot percent format for interest rates

2015-07-25 Thread Glenn Schultz
Hello All, The data is as follows below with ggplot command.  I would like there to be two digits to the right of the decimal on the y axis - this would be consistent with plotting interest rates.  I have not had much luck.  Any ideas are appreciated -glenn structure(list(Tenor = c(0, 1, 2,

Re: [R] Labeling world map

2015-07-25 Thread Ray Brownrigg
On 24/07/2015 7:37 p.m., sreenath wrote: I draw world map using library(maptools) library(ggmap) library(mapdata) library(maps) map("world",fill=TRUE,col="White",bg="light blue",ylim=c(-60,90),mar=c(0,0,0,0)) native <- c("brazil","sao paulo state") nat <-geocode(native) nat.x <- nat$lon nat.

Re: [R] Opposite color in R

2015-07-25 Thread peter dalgaard
> On 25 Jul 2015, at 21:49 , Atte Tenkanen wrote: > > Hi, > > I have tried to find a way to find opposite or complementary colors in R. > > I would like to form a color circle with R like this one: > http://nobetty.net/dandls/colorwheel/complementary_colors.jpg > > If you just make a basic c

[R] Opposite color in R

2015-07-25 Thread Atte Tenkanen
Hi, I have tried to find a way to find opposite or complementary colors in R. I would like to form a color circle with R like this one: http://nobetty.net/dandls/colorwheel/complementary_colors.jpg If you just make a basic color wheel in R, the colors do not form complementary color circle:

[R] Reading some csv files from different folders and add the name of each files to the first column of files

2015-07-25 Thread Lida Zeighami
I have 600 folders in which there are 3 csv files. The name of folders are as follows: EA_aa, EA_bb, EA_cc, EA_dd, In each folder there are 3 csv files: in folder EA_aa there are: EA_sing_aa.csvqwerty EA_ska_aa.csv EA_tat_aa.csv In folder EA_bb: EA_sing_bb.csv EA_ska_bb.csv EA_tat

Re: [R] Eye Diagram from a Topic Model

2015-07-25 Thread Peter Maclean via R-help
Is it possible to reproduce the eye-diagram described here from the topic model/ https://github.com/ouzor/eyediagram/blob/master/example.R and shown here: https://github.com/ouzor/eyediagram/blob/master/example/ExampleEyeDiagram.pdf The code do not work in processing as suggested by the author

Re: [R] Writing output of a looped process with pdfs

2015-07-25 Thread John Kane
Hi Cecilia, I am of no help with your actual problem but here are a few suggestions to help improve your question. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html I see you say that you created fnps list by ha

[R] Writing output of a looped process with pdfs

2015-07-25 Thread Larrosa, Cecilia
Hi, I have created a list of spdfs, and I am looping a process for each of them. The process is using dDistance to calculate distances between features within each spdf. I want to write the output tables using the name of the spdf at each loop, but cannot find a way to do this. It seems a rathe

Re: [R] apply kendall tau to a split data set

2015-07-25 Thread John Kane
It helps to have a bit more detail and some sample data. Have a look at Reproducibility http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html for some ideas of how to pose a question on the list. John Kane Kingston O

Re: [R] building a quicksort function in rcpp

2015-07-25 Thread peter dalgaard
> On 24 Jul 2015, at 17:22 , Martin Tully wrote: > > Hi I am using RCPP to build a C++ function for quicksort called qsort. > This function is compiled and loaded through the cxxfunction in R > I am getting the message in R error: no matching function for call to > 'qsort(int*&)' The code is bel

Re: [R] (no subject)

2015-07-25 Thread Jim Lemon
Hi Said, Try this: # some data please, maestro fatdat<-data.frame(age=sample(12:50,100,TRUE),BMI=runif(100,12,40)) # get your graphic device going png("fatplots.png",width=800,height=800) # get a 2x2 division of the device space par(mfrow=c(2,2)) # start plotting plot(age~BMI,data=fatdat) hist(fat

Re: [R] building a quicksort function in rcpp

2015-07-25 Thread Uwe Ligges
Actually sort() is already there Best, Uwe Ligges On 24.07.2015 17:22, Martin Tully wrote: Hi I am using RCPP to build a C++ function for quicksort called qsort. This function is compiled and loaded through the cxxfunction in R I am getting the message in R error: no matching function fo

Re: [R] about R 3.2.0

2015-07-25 Thread Tal Galili
Following what Erich wrote, if you are on Windows, there is also a step-by-step screenshot guide for upgrading R using the installr package: http://www.r-statistics.com/2015/06/a-step-by-step-screenshots-tutorial-for-upgrading-r-on-windows/ Contact Details:--

Re: [R] about R 3.2.0

2015-07-25 Thread Jeff Newmiller
You have not included the output of session info() which suggests you have nit read the Posting Guide... go do that now. I am not aware of any install procedure that deletes R packages. You can usually install multiple versions of R. Each X.Y version of R by default refers to a different librar

Re: [R] about R 3.2.0

2015-07-25 Thread Erich Neuwirth
If you are running R on Windows, there is the package installr which will help you with the process of upgrading. And item 2.8 in the R for Windows FAQ has some information about upgrading also. > On 25 Jul 2015, at 06:41, Waqas Shafqat wrote: > > Dear sir, > > I am using currently R 3.1.3. But