Re: [R] CRAN I-MR / Xbar-R / Xbar-S control chart package ?
Hello, I have no experience with I-MR charts but a google search found package qcc. Maybe it's what you're looking for. Hope this helps, Rui Barradas Em 08-07-2017 09:07, Tim Smith escreveu: Hi, I've had a quick look through the package list, and unless I've missed something, I can't seem to find anything that will do I-MR / Xbar-R / Xbar-S control charts ? Assuming there is something out there, can anyone point me in the right direction ? Thanks ! TIm __ 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] CRAN I-MR / Xbar-R / Xbar-S control chart package ?
Hi, I've had a quick look through the package list, and unless I've missed something, I can't seem to find anything that will do I-MR / Xbar-R / Xbar-S control charts ? Assuming there is something out there, can anyone point me in the right direction ? Thanks ! TIm __ 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] Factor vs character in a data.frame vs vector
Clearly I have been doing something weird. Thanks >It is possible that somewhere along the way, you set options(stringsAsFactors = FALSE)No not in a long time. I found that it was great for any personal work but any time I tried to use someone' else's raw data, say from a text file, it would mess up the data so I regretfully removed it. I remember reading a about the options(stringsAsFactors = TRUE) decision for read.table() but somehow missed or forgot it applied to a data.frame. It also still strikes me a bit perverse. Thanks again. On Friday, July 7, 2017, 10:25:45 PM EDT, Marc Schwartzwrote: > On Jul 7, 2017, at 7:03 PM, John Kane wrote: > > Thanks Marc. > It never occurred to me that I would need a ""stringsAsFactors" expression in > a data.frame. I could have sworn I never did before when mocking up some > data but clearly I was wrong or there has been a change in R v. 3.4.1 which > seems unlikely. Welcome John. Going back to the old NEWS files, the 'stringsAsFactors' argument for data.frame() appears in version 2.4.0, which was released on 2006-10-03. It is possible that somewhere along the way, you set options(stringsAsFactors = FALSE) in your .Rprofile, which would change the default behavior. I know that some folks do that, as they do not like the default coercion to factors, both for data.frame() and for the read.table() family. Other alternatives would be to use the 'colClasses' argument to explicitly set such vectors to character, or to use I(...) to create AsIs class columns. Regards, Marc > > > > On Friday, July 7, 2017, 10:37:29 AM EDT, Marc Schwartz > wrote: > > > > > On Jul 7, 2017, at 6:03 AM, John Kane via R-help > > wrote: > > > > This is not serious problem but I just wonder if someone can explain what > > is happening. > > The same command within a dataframe is giving me a factor and as a plain > > vector is giving me a character. It's probably something simple that I > > have read and forgotten but I thought I'd ask. > > Thanks > > > > # > > dat1 <- data.frame(aa = letters[1:10]) > > str(dat1) > > data.frame': 10 obs. of 1 variable: > > $ aaletters.1.10.: Factor w/ 10 levels "a","b","c","d",..: 1 2 3 4 5 6 > > 7 8 9 10#= > > bb = letters[1:10] > > str(bb) > > chr [1:10] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" > > #== > > > > > See the 'stringsAsFactors' argument in ?data.frame. > > dat1 <- data.frame(aa = letters[1:10], stringsAsFactors = FALSE) > > > > str(dat1) > 'data.frame': 10 obs. of 1 variable: > > $ aa: chr "a" "b" "c" "d" ... > > > Regards, > > Marc Schwartz > [[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] scalable and dynamic color bar
Hi,I am using rgl to plot 3d graphics. You can find below some executable code. I would like to add a color bar that scales as the window size scale. The solution I currently have gives a color bar that gets pixelated once you maximize the window. Can you suggest of alternatives? ThanksAlex [[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] Zero inflated Binomial Lasso
Hi R helpers, I have a problem on a zero-inflated binomial distribution. I have many regressions and few observations for which I wanted to apply the LASSO regression. Is there a package that allows the ZIB-Lasso? Thank you very much! [[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] [Rd] italic font on cairo devices in R 3.4
Cool, thanks, I didn't know about that. I'll give it a try. This still doesn't fix the root cause, though. Cheers, Ilia Original Message Subject: Re: [R] [Rd] italic font on cairo devices in R 3.4 Date: 2017-07-08 07:11:10 +0200 From: Yixuan Qiu To: ilia-kats CC: frederik, r-help Hi Ilia, You may want to have a try of the showtext package (https://github.com/yixuan/showtext). Below is a quick example: library(showtext) showtext.auto() pdf("test.pdf") ## Use the "sans" font family provided by the showtext package ## font == 3 means italic font face plot(1, xlab = "Unicode characters: \u00C0 \u00C6 \u00D8", family = "sans", font.lab = 3) dev.off() ## Same for SVG svg("test.svg") plot(1, xlab = "Unicode characters: \u00C0 \u00C6 \u00D8", family = "sans", font.lab = 3) dev.off() Best, Yixuan 2017-07-07 13:08 GMT-04:00 Ilia Kats: Interesting. I did not have the package installed, but I did at some point extract Helvetica from some MacOSX font files and R was using that just fine until 3.3. This is how the plot looks in 3.4 (still using Helvetica): https://ptpb.pw/HikX.pdf . After removing Helvetica, installing the ttf-mscorefonts-installer package, and running fc-cache --force the plot looks like this: https://ptpb.pw/CM8A.pdf Also note that the standard pdf device works fine: https://ptpb.pw/3Ml1.pdf , it's just the cairo devices (both pdf and svg) that have the issue. Unfortunately I need to use cairo_pdf due to unicode characters in axis labels. Cheers, Ilia -- [...] or some clown changed the chips on a board and not its name. (Don't laugh! Look at the SMC etherpower for that.) -- from /usr/src/linux/MAINTAINERS __ 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.