[R] Help Required in looping visuals
Hi Team , I have a requirement of building set of panels in which each panel has multiple visuals based on single set of dataset values and this thing is repeated for other set of values as well. For this requirement , I am trying to use a for loop to create visuals and panel for each set of values ( like first panel should be for first set of dataset values and so on) . Do we have any available solution for this problem. Thanks, Venkat. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
[R] [R-pkgs] easycsv v1.0.5 released
Hello users, package *easycsv* version 1.0.5 is now available on CRAN < https://cran.r-project.org/package=usmap>. this update contains some upgrades and a new *choose_dir* function for Linux and Mac OSX users, for windows users, it's still implemented with utils::choose.dir. The full change log is available on Github: https://github.com/bogind/easycsv/releases/tag/v1.0.5 __ *easycsv* is mostly meant for easily reading multiple comma separated tables into R's environment from either a local folder, a zip file or a remote folder, but I add some nice utility functions when I can. feedback and issues are welcome on https://github.com/bogind/easycsv/issues -- Regards, Dror [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] Help Required in looping visuals
I think we need a lot more information on the problem. read the posting guidelines at the bottom of the email & have a look at these links. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Reproducibility · Advanced R. | | | | Reproducibility · Advanced R. | | | On Monday, August 21, 2017, 4:00:13 AM EDT, Venkateswara Reddy Marella (Infosys Ltd) via R-help wrote: Hi Team , I have a requirement of building set of panels in which each panel has multiple visuals based on single set of dataset values and this thing is repeated for other set of values as well. For this requirement , I am trying to use a for loop to create visuals and panel for each set of values ( like first panel should be for first set of dataset values and so on) . Do we have any available solution for this problem. Thanks, Venkat. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] Help Required in looping visuals
Hi Venkat, I must admit I don't understand what you are looking for, but maybe just store the visuals in a named lIst? Also, I have started to use nested data.frames to keep plots together with identifiers of the data sets. The nest and unnest functions are in the tidyr package. It keeps me from having to create and parse long names, and provides a nice structure. HTH Ulrik On Mon, 21 Aug 2017 at 10:00 Venkateswara Reddy Marella (Infosys Ltd) via R-help wrote: > Hi Team , > > I have a requirement of building set of panels in which each panel has > multiple visuals based on single set of dataset values and this thing is > repeated for other set of values as well. > For this requirement , I am trying to use a for loop to create visuals and > panel for each set of values ( like first panel should be for first set of > dataset values and so on) . Do we have any available solution for this > problem. > > Thanks, > Venkat. > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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] Help Required in looping visuals
> On 21 Aug 2017, at 09:30, Venkateswara Reddy Marella (Infosys Ltd) via R-help > wrote: > > Hi Team , > > I have a requirement of building set of panels in which each panel has > multiple visuals based on single set of dataset values and this thing is > repeated for other set of values as well. > For this requirement , I am trying to use a for loop to create visuals and > panel for each set of values ( like first panel should be for first set of > dataset values and so on) . Do we have any available solution for this > problem. > > Thanks, > Venkat. I suspect you want to plot categorical variables in panels. Run the code below and see if it solves your problem. If not, create a minimal example as below and ask your question again. df <- data.frame(set = factor(paste0("set", rep(1:6, each = 20))), x = rnorm(120), y = rnorm(120)) library(lattice) xyplot(x~y|set, df, type = "p", as.table = TRUE) library(ggplot2) ggplot(df, aes(x = x, y = y, color = set)) + facet_wrap(~set, nrow = 2, ncol = 3) + geom_point() __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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 & RStudio hardware Utilization
The actual question posed was whether R behaves differently than RStudio at parallel computation, which is like asking whether apple pies grow better than apple trees. The answer is that RStudio doesn't do any computation... it is a programming environment that hands off all computation to a separately-installed copy of the R software. Read the messages in the console right after you start RStudio instead of ignoring them. -- Sent from my phone. Please excuse my brevity. On August 20, 2017 10:43:52 AM PDT, Bert Gunter wrote: >Inline. >Bert Gunter > >"The trouble with having an open mind is that people keep coming along >and sticking things into it." >-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > >On Sun, Aug 20, 2017 at 7:39 AM, Vasilis Bardakos via R-help > wrote: >> I am going to attend MSc Data Science in September, so I consider >upgrading my system to be more efficient with my projects.I used >RStudio for my Macroeconomics Undergraduate Thesis and I had a couple >of loops which needed almost 30 minutes to occur. >> My system specifications are the following: >> >>- CPU: i7 4970k @ 4.0 GHz >>- RAM: 8GB DDR3 >>- Hard Drive: SSD M.2 950 PRO >> >> Since I have only used RStudio, is there any dramatic difference >between R and RStudio in terms of system resources used? >> Does R utilizes all Cores? If it does, is it better to go for more >cores or faster CPU?I know that RAM has a great impact. However, I >don't really know how much do I really need for individual projects. >Invest to 32GB or just go for fast 16GB?At the moment, my SSD seems >fine in terms of speed. >> Sorry for the trouble but there is not any clear answer in the >internet. > >Nonsense!! Searching on "Does R use multiple cores on a multicore CPU" >immediately brought this up: > >https://stackoverflow.com/questions/4775098/r-package-that-automatically-uses-several-cores > >This appears to answer all your questions! Note in particular the >pointers to CRAN's "High Performance Computing" task view, which >should provide up to date answers and packages. > >Cheers, >Bert > > > > >> Thank you in advance,William >> >> [[alternative HTML version deleted]] >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >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. -- Sent from my phone. Please excuse my brevity. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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 & RStudio hardware Utilization
The actual question posed was whether R behaves differently than RStudio at parallel computation, which is like asking whether apple pies grow better than apple trees. The answer is that RStudio doesn't do any computation... it is a programming environment that hands off all computation to a separately-installed copy of the R software. Read the messages in the console right after you start RStudio instead of ignoring them. -- Sent from my phone. Please excuse my brevity. On August 20, 2017 10:43:52 AM PDT, Bert Gunter wrote: >Inline. >Bert Gunter > >"The trouble with having an open mind is that people keep coming along >and sticking things into it." >-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > >On Sun, Aug 20, 2017 at 7:39 AM, Vasilis Bardakos via R-help > wrote: >> I am going to attend MSc Data Science in September, so I consider >upgrading my system to be more efficient with my projects.I used >RStudio for my Macroeconomics Undergraduate Thesis and I had a couple >of loops which needed almost 30 minutes to occur. >> My system specifications are the following: >> >>- CPU: i7 4970k @ 4.0 GHz >>- RAM: 8GB DDR3 >>- Hard Drive: SSD M.2 950 PRO >> >> Since I have only used RStudio, is there any dramatic difference >between R and RStudio in terms of system resources used? >> Does R utilizes all Cores? If it does, is it better to go for more >cores or faster CPU?I know that RAM has a great impact. However, I >don't really know how much do I really need for individual projects. >Invest to 32GB or just go for fast 16GB?At the moment, my SSD seems >fine in terms of speed. >> Sorry for the trouble but there is not any clear answer in the >internet. > >Nonsense!! Searching on "Does R use multiple cores on a multicore CPU" >immediately brought this up: > >https://stackoverflow.com/questions/4775098/r-package-that-automatically-uses-several-cores > >This appears to answer all your questions! Note in particular the >pointers to CRAN's "High Performance Computing" task view, which >should provide up to date answers and packages. > >Cheers, >Bert > > > > >> Thank you in advance,William >> >> [[alternative HTML version deleted]] >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >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. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.