Re: [R] calling r from java (Eduard Drenth)

2020-11-29 Thread Eduard Drenth
Because of efficiency? But almost all development I do is in Java/Xml/XQuery so I am interested in efficiently integrating the two. And for our small institution it is important to limit the number of technologies / frameworks. Bye, Eduard -Original Message-From: Adrian Trapletti To: Eduar

[R] RGB -> CYMK, with consistent colors

2020-11-29 Thread Derek Jones
All, I used the very useful colorspace package for the plots in my book (pdf available here): http://knosof.co.uk/ESEUR/ The color makes the plots look great, on screen. To get lots printed, the printer requires converting the images to use cmyk (a common requirement for larger printers, I'm to

[R] SIMULATE choice experiments

2020-11-29 Thread Nyarko Eric
Dear all, Please, any assistance on how to SIMULATE choice experiments to obtain the multinomial logit choice probabilities as well as the model parameters for the design matrix F having 7 factors and 12 blocks of size 2. Thank you. F<- c(1,-1,1,-1,1,-1,1,-1,1,1,1,1,-1,-1,-1,-1,1,1,-1,-1,1,1,-1,

Re: [R] RGB -> CYMK, with consistent colors

2020-11-29 Thread Martin Møller Skarbiniks Pedersen
On Sun, 29 Nov 2020 at 14:26, Derek Jones wrote: [...] > I can regenerate the images, and explicitly specify cmyk. But using: > > pdf.options(colormodel="cymk") > > does not change anything. The colors look remarkably similar to > those produced via the ghostview route. [...] > Does anybody

Re: [R] SIMULATE choice experiments

2020-11-29 Thread Bert Gunter
I do not believe you will get a useful response to your query. Per the posting guide linked below (please read it): *Questions about statistics:* The R mailing lists are primarily intended for questions and discussion about the R software. However, questions about statistical methodology are somet

Re: [R] RGB -> CYMK, with consistent colors

2020-11-29 Thread Derek M Jones
Martin, Have you tried printed a few pages in CMYK? A monitor is based on mixing light using Red-Green-Blue. So it is not possible for the monitor to show CMYK which must be printed on paper to view correctly. Yes, I have printed some 'CMYK' pages. The blue is very obviously not cyan, as com

Re: [R] RGB -> CYMK, with consistent colors

2020-11-29 Thread Derek Jones
Martin, Have you tried printed a few pages in CMYK? A monitor is based on mixing light using Red-Green-Blue. So it is not possible for the monitor to show CMYK which must be printed on paper to view correctly. Yes, I have printed some 'CMYK' pages. The blue is very obviously not cyan, as com

Re: [R] [External] RGB -> CYMK, with consistent colors

2020-11-29 Thread Richard M. Heiberger
I had a long discussion on this topic with the Springer production group when my book was in production. Statistical Analysis and Data Display: An Intermediate Course with Examples in R, second edition Richard M. Heiberger and Burt Holland. https://www.springer.com/gp/book/9781493921218 As I now u

Re: [R] calling r from java

2020-11-29 Thread Eduard Drenth
First attempts to use jri on ubuntu 20.04 stranded. Steps I followed: 1) download rJava from https://www.rforge.net/rJava/files/ 2) create a symlink /usr/lib/libjvm.so to /usr/lib/jvm/java-8-openjdk- amd64/jre/lib/amd64/server/libjvm.so 3) configure and make jri 4) create a symlink /usr/lib/libjr

Re: [R] RGB -> CYMK, with consistent colors

2020-11-29 Thread PIKAL Petr
Hi. CMYK and RGB are physically different concepts of colour mixing (subtractive/additive) and the only way how to achieve good results is to calibrate the monitor and the printer (which is hardly achievable in home conditions). Usually DTP professionals are equipped for such kind of work. Even th