Re: [R] Plot in real unit (1:1)

2018-06-06 Thread Brandstätter Christian
Thanks a lot! Jim Lemon schrieb am Do., 7. Juni 2018, 06:13: > Hi Christian, > Well, it almost worked. I suspect that the postscript device adds some > padding to account for the printable area, so with a bit of > experimentation, The following example seems to do what you want. When > I

Re: [R] Plot in real unit (1:1)

2018-06-06 Thread Jim Lemon
Hi Christian, Well, it almost worked. I suspect that the postscript device adds some padding to account for the printable area, so with a bit of experimentation, The following example seems to do what you want. When I printed the resulting file from the GIMP, the box and diamond were the correct

Re: [R] using myfunction in stat_function

2018-06-06 Thread David Winsemius
> On Jun 6, 2018, at 8:04 PM, Veerappa Chetty wrote: > > HI, > > I use solve(A,b) inside my function, myfun2; it works fine when I return > one value or a list. > > I want use the return values in ggplot as below: > ggplot(data.frame( >

[R] using myfunction in stat_function

2018-06-06 Thread Veerappa Chetty
HI, I use solve(A,b) inside my function, myfun2; it works fine when I return one value or a list. I want use the return values in ggplot as below: ggplot(data.frame( x=c(0.1,0.8)),aes(x=x))+stat_function(fun=myfun.2,geom="line") I get a blank graph. Would greatly appreciate help! Thanks. --

Re: [R] Time and date conversion

2018-06-06 Thread MacQueen, Don via R-help
After you've solved the format inconsistency issues, per Peter's advice, you will need to understand that R internally converts and stores the timedate values in UTC. Therefore, it is absolutely essential to give it the correct timezone specification on input. The user does not "convert to UTC

Re: [R] Plot in real unit (1:1)

2018-06-06 Thread Jim Lemon
Hi Christian, When I have to do something like this, I usually write it in Postscript using this: /def mm 2.8346 mul that converts a dimension in mm to points (1/72 inch). However, this won't work in R. It may be possible to set up the device like this: postscript("myfile.ps",paper="a4")

[R] verInd= and HorInd= arguments to pairs() function

2018-06-06 Thread Andrews, Chris
After making scatterplot matrix, I determined I only needed the first 2 columns of the matrix so I added verInd=1:2 to my pairs() call. However, it did not turn out as I expected. Perhaps the attached pdf of the example code will make it through. If not, my description is "the wrong

Re: [R] internet routines cannot be loaded, R 3.5.0

2018-06-06 Thread Sarah Goslee
Hi, install.packages() will install packages you specify, update.packages(ask = FALSE, checkBuilt = TRUE) is a useful way to update all installed packages after a major R update. Your specific error message is probably because the sorengard mirror is down:

Re: [R] ROC within SEM

2018-06-06 Thread David Winsemius
> On Jun 6, 2018, at 10:37 AM, Palmer, Raymond F wrote: > > Dear R group. > Does anyone have an idea how to utilize a latent variable in an ROC (AUC) > analysis? I want to create a latent variable, then use that latent construct > as a continuous variable in an ROC. > I understand both SEM

[R] ROC within SEM

2018-06-06 Thread Palmer, Raymond F
Dear R group. Does anyone have an idea how to utilize a latent variable in an ROC (AUC) analysis? I want to create a latent variable, then use that latent construct as a continuous variable in an ROC. I understand both SEM and ROC analysis can be done in R, but how to use the latent variable in

[R] internet routines cannot be loaded, R 3.5.0

2018-06-06 Thread LMH
Hello, I recently upgraded my version of R and find I need to reinstall packages (unless there is some method to import my old profile and files). I have set my repository to CRAN and set my CRAN mirror to US, NY. If I select "packages > install packages" in the R console, I get a message, "no

[R] Plot in real unit (1:1)

2018-06-06 Thread Christian Brandstätter
Dear List, Is it possible to plot in R in "real" units? I would like to draw a plot on A4 paper, where 1 plot unit would be a mm in reality. Is something like that possible? I would also like to be able to scale the plot in x and y direction. Background: For a project I would have to draw

Re: [R] Ubuntu 18.04 / R 3.4.4 / shinyjs / V8

2018-06-06 Thread Sigbert Klinke
Hi, found myself a workaround: Replaced the javascript functionality by calls of session$sendCustomMesssage(...) & Sys.sleep(...) and deleted library(shinyjs) from my code. Best Sigbert Am 06.06.2018 um 10:33 schrieb Sigbert Klinke: Hi, if I want to use shinyjs package then I need the V8

Re: [R] Help with "ERROR: lazy loading failed for package 'psycho'"

2018-06-06 Thread Bill Poling
Yep, terrific, that’s got it, thank you Eric! WHP From: Eric Berger [mailto:ericjber...@gmail.com] Sent: Wednesday, June 06, 2018 7:50 AM To: Bill Poling Cc: r-help (r-help@r-project.org) Subject: Re: [R] Help with "ERROR: lazy loading failed for package 'psycho'" >

Re: [R] Help with "ERROR: lazy loading failed for package 'psycho'"

2018-06-06 Thread Eric Berger
> install.packages("Matrix") On Wed, Jun 6, 2018 at 2:24 PM, Bill Poling wrote: > Good morning. In my continuing pursuit of self-taught R programming I am > interested in following the tutorial provided by Bloggers.com "Beautiful > and Powerful Correlation Tables in R" > > >

Re: [R-es] Problemas en documento Rmarkdown (logo y afiliacion)

2018-06-06 Thread Francisco Rodriguez Sanchez
Hola Antonio, Como hablas de diapositivas entiendo que estás usando el formato beamer_presentation? Si es así, para mostrar la afiliación el campo correcto es 'institute', esto es --- title: 'Motivation' subtitle: "International Summer School of Economic, Financial and Management Studies"

[R] Help with "ERROR: lazy loading failed for package 'psycho'"

2018-06-06 Thread Bill Poling
Good morning. In my continuing pursuit of self-taught R programming I am interested in following the tutorial provided by Bloggers.com "Beautiful and Powerful Correlation Tables in R" https://www.r-bloggers.com/beautiful-and-powerful-correlation-tables-in-r-2/ 3/ Although, I have hit a snag

Re: [R] Printing left-justified character strings

2018-06-06 Thread zListserv
Duncan Many thanks. I removed the (re-)definitions for print and print.default, and I redefined print.data.frame using 'x' instead of 'df'. Your point about possible issues downstream with row names is well taken. I'll keep a lookout for any untoward side effects. In the meantime, all is

Re: [R] Printing left-justified character strings

2018-06-06 Thread Duncan Murdoch
On 06/06/2018 6:28 AM, zListserv wrote: Sorry. Here's how I re-defined print, print.default, and print.data.frame: print = function(df, ..., right=FALSE, row.names=FALSE) base::print(df, ..., right=right, row.names=row.names) base::print doesn't have those arguments. It only has arguments

[R-es] Problemas en documento Rmarkdown (logo y afiliacion)

2018-06-06 Thread Antonio Rodriguez Andres
Estimados usuarios de R Estaba creando un documento que queria tener en formato pdf. Me voy al YAML front, pero creo que me deja solo titulo, y subtitulo, no me deja poner afiliación, y deberia tener un logo cada diapositiva. Tengo esto como comienzo del documento Rmarkdown, alguna sugerencia,

Re: [R] Printing left-justified character strings

2018-06-06 Thread zListserv
Sorry. Here's how I re-defined print, print.default, and print.data.frame: print = function(df, ..., right=FALSE, row.names=FALSE) base::print(df, ..., right=right, row.names=row.names) print.default = function(df, ..., right=FALSE, row.names=FALSE) base::print.default(df, ..., right=right,

[R] Ubuntu 18.04 / R 3.4.4 / shinyjs / V8

2018-06-06 Thread Sigbert Klinke
Hi, if I want to use shinyjs package then I need the V8 package. Therefore I installed apt-get install libv8-3.14-dev and tried install.packages("V8") and get ** preparing package for lazy loading Error in dyn.load(file, DLLpath = DLLpath, ...) : kann shared object

Re: [R] aggregate and list elements of variables in data.frame

2018-06-06 Thread Ivan Calandra
Hi Massimo, Something along those lines could help you I guess: t$A <- factor(t$A) sapply(levels(t$A), function(x) which(t$A==x)) You can then play with the output using paste() Ivan -- Dr. Ivan Calandra TraCEr, laboratory for Traceology and Controlled Experiments MONREPOS Archaeological

[R] aggregate and list elements of variables in data.frame

2018-06-06 Thread Massimo Bressan
#given the following reproducible and simplified example t<-data.frame(id=1:10,A=c(123,345,123,678,345,123,789,345,123,789)) t #I need to get the following result r<-data.frame(unique_A=c(123, 345, 678, 789),list_id=c('1,3,6,9','2,5,8','4','7,10')) r # i.e. aggregate over the variable

[R] Decision Tree Issue: Why does tree() not pick all variables for the nodes

2018-06-06 Thread nguy2952 University of Minnesota
I am working on a project at my work place and I am running into some issues with my decision tree analysis. THIS IS NOT A HOMEWORK ASSIGNMENT. Sample dataset PRODUCT_SUB_LINE_DESCR MAJOR_CATEGORY_DESCR CUST_REGION_DESCR SUNDRYSMALL EQUIP NORTH EAST