Re: [R] Date and Time

2022-07-17 Thread Daniel Nordlund
On 7/17/2022 8:47 PM, Gregory Coats via R-help wrote: For the year from 2022-01-01 to 2022-12-31, I computed the sunrise and sunset times for Reston, Virginia, USA. I am seeking the syntax to direct R to read in these dates and times, and then graphical plot the sunrise and sunset times for

Re: [R] Date and Time

2022-07-17 Thread Jeff Newmiller
Maybe this [1] will help? Or just read ?strptime... You can also calculate sunrise/sunset (crepuscule) using maptools, but you need to be careful with timezones. [1] https://jdnewmil.github.io/time-2018-10/MoreDatetimeHowto.html On July 17, 2022 8:47:19 PM PDT, Gregory Coats via R-help

[R] Extract time and state of charge (Start and End) and Count

2022-07-17 Thread roslinazairimah zakaria
Dear all, I have data of Battery Electric vehicle (BEV). I would like to extract data from every hour starting from 0.00 to 0.59, 1:00-1:59 for SOC(state of charge) start to end. Some examples: I can extract data from SOC=0 and SOC=12 dt_2014[which(dt_2014$Starting_SoC_of_12==0 &

Re: [R] How to reduce the (whitespace) gap between boxplots

2022-07-17 Thread Bert Gunter
Make your xlim values narrower, as I showed you! Alternatively, you could also us the "boxwex" parameter passed to bxp() like this: boxplot(RF,Ranger, SVM, KNN, DT, range = 0, col=colors, at = seq(1:5), boxwex = .5, names= c("RF","Ranger", "SVM", "KNN", "DT"),main="Degree of

Re: [R] How to reduce the (whitespace) gap between boxplots

2022-07-17 Thread Neha gupta
Thank you so much. When I modify this, like the following xlim = c(.2,4.2), The spaces between boxplots are reduced but the main box (the container) remains the same which still takes space. Can I reduce the size of the main box (which contains all the boxplots) to take less space. On Sun,