Re: [R] [FORGED] How to alpha entire plot?

2018-06-04 Thread Paul Murrell
Hi Here is one way to do it ... col1 <- "red" col2 <- "blue" EU <- data.frame(EuStockMarkets) with(EU, plot(DAX, CAC, col=col2, type="h", ylim=c(0,6000))) par(new=TRUE) with(EU, plot(DAX, FTSE, col=col1, type="h", ylim=c(0,6000))) ## Convert 'graphics' to 'grid' library(gridGraphics) grid.echo(

Re: [R] Running segmented on grouped data and collating model parameters in a data frame

2018-06-04 Thread Vito M. R. Muggeo
dear Sumi, I am not familiar with the dplyr package (%>%..), however if you want to fit the model for each subject times freq interaction, a simple for loop will suffice. Here possible code: Assuming d is the dataframe, something like subj<-levels(d$subject) fr<-unique(d$freq) #new dataframe

Re: [R] Time and date conversion

2018-06-04 Thread peter dalgaard
> On 4 Jun 2018, at 10:45 , Christofer Bogaso > wrote: > > Hi, > > I have an automatic data feed and I obtained a Date vector in the following > format: > >> Date > [1] "03 Jun 2018 10:01 am CT""01 Jun 2018 22:04:25 pm CT" > > I now like to convert it to UTC time-zone > > Is there any

Re: [R] Time-series moving average question

2018-06-04 Thread Bill Poling
Good morning Don, thank you for your support. I will give this all more investigation and submit my findings when finalized. Cheers and thanks again for your help Sir. WHP From: MacQueen, Don [mailto:macque...@llnl.gov] Sent: Friday, June 01, 2018 5:03 PM To: Bill Poling ; r-help (r-help@r-pr

[R] Time and date conversion

2018-06-04 Thread Christofer Bogaso
Hi, I have an automatic data feed and I obtained a Date vector in the following format: > Date [1] "03 Jun 2018 10:01 am CT""01 Jun 2018 22:04:25 pm CT" I now like to convert it to UTC time-zone Is there any easy way to convert them so, particularly since 1st element doesnt have any Second

Re: [R] package colorspace and .WhitePoint question

2018-06-04 Thread Achim Zeileis
Glenn, currently, this is currently not exposed in "colorspace" AFAICS. You can modify it by changing .WhitePoint inside colorspace's NAMESPACE, though: R> assignInNamespace(".WhitePoint", rbind(c(95, 100, 105)), +ns = "colorspace") R> as(XYZ(100, 100, 100), "LAB") LA

[R] package colorspace and .WhitePoint question

2018-06-04 Thread Glenn Davis
In colorspace.R I see: setAs("color", "LAB", function(from) LAB(.Call("as_LAB", from@coords, class(from), .WhitePoint, PACKAGE = " colorspace"), names = dimnames(from@coords)[[1]])) ... .WhitePoint = NULL and then in colorspace.c and the function CheckWhite(), I see