Re: [R] prop.trend.test

2023-09-07 Thread Thomas Subia via R-help
tion. If there are any other ways to do this, please let me know. Thomas Subia On Thursday, September 7, 2023 at 10:31:27 AM PDT, Rui Barradas wrote: Às 14:23 de 07/09/2023, Thomas Subia via R-help escreveu: > > Colleagues > >   Consider > smokers  <- c( 83,

[R] prop.trend.test

2023-09-07 Thread Thomas Subia via R-help
004132  # trend test for proportions indicates proportions aretrending.  How does one identify the direction of trending?  # prop.test indicates that the proportions are unequal but doeslittle to indicate trend direction. All the best, Thomas Subia [[alternative HTML version d

Re: [R] geom_smooth

2023-08-12 Thread Thomas Subia via R-help
Colleagues, Your suggestions are elegant and greatly appreciated. Thomas Subia On Friday, August 11, 2023 at 11:08:42 PM PDT, Berwin A Turlach wrote: G'day Thomas, On Sat, 12 Aug 2023 04:17:42 + (UTC) Thomas Subia via R-help wrote: > Here is my reproducible code for

[R] geom_smooth

2023-08-11 Thread Thomas Subia via R-help
int()+   geom_smooth(se=TRUE,fill="blue",color="black",linetype="dashed")+   theme_cowplot() I'd like to add a black boundary around the shaded area. I suspect this can be done with geom_ribbon but I cannot figure this out. Some advice wou

Re: [R] plotly

2023-07-25 Thread Thomas Subia via R-help
))) Question 1:How can I save the plotly graph with a specific graph size?Using ggsave, one can define the height, width and unit of measure, is there something similar in plotly?Since I am creating the same gauge plot but with different data, I'd like all the resulting graphs to have the

Re: [R] plotly

2023-07-22 Thread Thomas Subia via R-help
not sure why this occurs. Changing the statement to 56, results in the > gauge reading 60. I'm not sure what needs to be changed in the script or the > environment to stop rounding. > On Jul 22, 2023, at 10:43, Boris Steipe wrote: > > What do you mean "Rounded&

Re: [R] plotly

2023-07-22 Thread Thomas Subia via R-help
Colleagues, Thanks for the update. My colleagues at work have run this script but the resulting graph output for value is rounded. How can one turn this annoying feature off? I've googled this but to no avail. [[alternative HTML version deleted]] __

[R] plotly question

2023-07-21 Thread Thomas Subia via R-help
e indicator color from green to some other color? How can I change the typeface and font size of the speedometer tick mark font size? Thomas Subia [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

[R] prop.test question

2023-07-11 Thread Thomas Subia via R-help
-value = 0.004132 How can one determine the direction of the trend? Thomas Subia [[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 re

Re: [R] [External] latticeExtra

2023-06-05 Thread Thomas Subia via R-help
Colleagues, Thanks for the help! Root cause of the problem was not to define z and x as factors!Now I know better. All the best, Thomas Subia On Monday, June 5, 2023 at 08:45:39 PM PDT, Richard M. Heiberger wrote: This works. > d$zz <- factor(d$z, levels=c("low",&q

[R] latticeExtra

2023-06-05 Thread Thomas Subia via R-help
erator I suspect that this error stems from read.table. This graph is easily done with Excel but I'd rather use R Any help would be appreciated. Thanks Thomas Subia [[alternative HTML version deleted]] __ R-help@r-project.org mailin

[R] Pairwise comparison test

2023-05-12 Thread Thomas Subia via R-help
3 1.000 1.000 - 4 0.119 0.093 0.124 Is there a way to generate a graph which illustrates the pairwise comparison of proportions? Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] Shadow Graphics Error in R Studio

2023-01-26 Thread Thomas Subia via R-help
://stackoverflow.com/questions/19513705/error-in-rstudiogd-shadow-graphics-device-error-r-error-4-r-code-execution Hope this helps! Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

[R] Date order question

2023-01-04 Thread Thomas Subia
.5, y=-.05, label="PT Not Done",size=5,fontface="bold")+ theme_cowplot() The plot has the wrong date order. What is desired is 12-29, 12-30 and 01-01. Some feedback would be appreciated. All the best, Thomas Subia "De quoi devenir chevre? Des donnees" _

Re: [R] pairwise.var.test

2022-10-30 Thread Thomas Subia via R-help
://support.minitab.com/en-us/minitab/20/media/pdfs/translate/Multiple_Comparisons_Method_Test_for_Equal_Variances.pdf I was hoping that R had something similar. I tried a Google search on this but to no avail. Thomas Subia On Sunday, October 30, 2022 at 03:44:54 PM PDT, Rui Barradas wrote: Às 21:47 de

[R] pairwise.var.test

2022-10-30 Thread Thomas Subia via R-help
group levels? I can do this using Minitab but I'd prefer using R for this. Thomas Subia __ 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://

Re: [R] R-help Digest, Vol 236, Issue 25

2022-10-27 Thread Thomas Subia
transform the dataset into a normal distribution. I suspect that this is as close as you can get to an automatic distribution fitting. Hope this helps! Thomas Subia -Original Message- From: R-help On Behalf Of r-help-requ...@r-project.org Sent: Thursday, October 27, 2022 3:00 AM To

Re: [R] How long does it take to learn the R programming language?

2022-09-28 Thread Thomas Subia via R-help
er for your analyses. Hope this helps! Thomas Subia   __ 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 provid

Re: [R] transformTukey

2021-12-15 Thread Thomas Subia
Thanks Ivan! This makes perfect sense now! All the best, Thomas Subia Statistician -Original Message- From: Ivan Krylov Sent: Wednesday, December 15, 2021 5:21 AM To: Thomas Subia via R-help Cc: Thomas Subia ; Thomas Subia Subject: Re: [R] transformTukey On Wed, 15 Dec 2021 05:11

[R] transformTukey

2021-12-15 Thread Thomas Subia via R-help
er than 0. Data set is heavily right skewed > library(rcompanion) > trans_data <- transformTukey(data) Error in is.infinite(TRANS) : default method not implemented for type 'list' Why is this occurring? Thomas Subia __ R-hel

[R] (no subject)

2021-10-06 Thread Thomas Subia
Colleagues, Some co-workers are wondering about how secure R software is. Is there any documentation on this which I can forward to them? All the best, Thomas Subia Quality Engineer __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

[R] . Re: Splitting a data column randomly into 3 groups

2021-09-04 Thread Thomas Subia via R-help
quot;J" "K" Now from this reduced dataset, I can generate another random selection with any size I choose. One problem with this is that this is cumbersome when ones original dataset is large or when one wants to subgroup the original dataset into many different subg

[R] uniroot

2021-08-27 Thread Thomas Subia via R-help
sure that is the case, nevertheless, it's worth asking the question. Some guidance would be appreciated. Thanks! Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] Sin curve question

2021-07-24 Thread Thomas Subia via R-help
Colleagues, Here is my code which plots sin(x) vs x, for angles between 0 and 180 degrees. library(ggplot2) library(REdaS) copdat$degrees <- c(0,45,90,135,180) copdat$radians <- deg2rad(copdat$degrees) copdat$sin_x <- sin(copdat$radians) ggplot(copdat,aes(x=degrees,y=sin_x))+ geom_point(size =

[R] Spie charts

2021-03-29 Thread Thomas Subia via R-help
Ferri, Radar Charts are often used to compare two or more items or groups on various features or characteristics. However, as the number of groups increases, the user has a harder time making comparisons between groups. As the number of groups increase, the number of spokes of the radar chart in

[R] readxl question

2020-08-21 Thread Thomas Subia via R-help
E_14_2,"BUBBLE_14_2.txt") After the text files have been created, I cut and paste each column of data to Excel. This has worked fine if the number of cells I am extracting from a file is small. If the number gets larger, this method is inefficient.

[R] readxl question

2020-08-21 Thread Thomas Subia via R-help
E_14_2,"BUBBLE_14_2.txt") After the text files have been created, I cut and paste the contents of each text file to Excel. This has worked fine if the number of cells I am extracting from a file is small. If the number gets larger, this method is inefficient.

[R] Grouping Question

2020-03-21 Thread Thomas Subia via R-help
. Else Serial_test is a fail. I'm at a loss to figure out how to do this in R. Some guidance would be appreciated. All the best, Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

[R] Annotate question

2020-02-19 Thread Thomas Subia
Colleagues, To add an annotation using ggplot, I've used annotate("text",x=17,y=2130,label="16 u"). However, this does not work when trying to annotate box plots by groups since groups are factors. Any advice would be appreciated. Thomas Subia ASQ CQE IMG Comp

Re: [R] readxl issue

2020-02-05 Thread Thomas Subia
les(pattern="*.xls", full.names = TRUE) # Extract part average from cell c6 for all Excel files avgs <- lapply(files, read_excel, sheet="Flow Data", range=("c9")) # Write data to text file write.table(avgs ,"avgs.txt",sep="\t") I'm not sure wher

[R] readxl issue

2020-02-05 Thread Thomas Subia
he first lines of the dates.txt file. "X43859" "X43859.1" "X43859.2" "X43859.3" "X43833" In Excel, this is what is recorded. 1/29/2020 1/29/2020 1/29/2020 1/29/2020 1/3/2020 It appears that readxl is adding additional characters which are sig

Re: [R] R Dplyr hands on project

2020-01-30 Thread Thomas Subia
reate your choice graphs with whatever variables you choose without having to write any code. Parenthetically, after creating the graph, the add in will display the code which created your graph. Pairing equisse with Chang's book will enable you to learn how to create graphs using R more easily

[R] Dataframe by Serial ID

2020-01-08 Thread Thomas Subia
Post.Date Pre.Hole Pre.flowPre.Date Any ideas on how to do this would be appreciated. Thomas Subia Statistician / Senior Quality Engineer IMG Companies  225 Mountain Vista Parkway Livermore, CA 94551 T. (925) 273-1106 F. (925) 273- E. tsu...@imgprecision.com

[R] Checking for similar file names in two different directories

2019-12-26 Thread Thomas Subia
here a way to have R extract parts common to both directories? Thomas Subia Statistician / Senior Quality Engineer ASQ CQE IMG Companies  225 Mountain Vista Parkway Livermore, CA 94551 T. (925) 273-1106 F. (925) 273- E. tsu...@imgprecision.com Precision Manufacturing for Emerging Technolog

[R] Readxl Question

2019-12-20 Thread Thomas Subia
df <-as.data.frame(flow.datum) myflow <- list(flowdf) write.table(myflow,"myflow.txt",sep=",") The problem with the dates.txt and the serials.txt is that they need to associated with its 49 corresponding values in myflow.txt. The objective is to create a text file having

[R] readxl question

2019-12-05 Thread Thomas Subia
-t(serial_df) myserials <- list(trans_serial) write.table(myserials,"myserials.txt",sep="\t") R Output "" "X96739.0027.1" "X96739.0041.1" "X96739.0044.1" Original Excel Content 96739-0027/1 96739-0041/1 96739-0044/1 How can I amend my scri

[R] Combining text files

2019-12-03 Thread Thomas Subia via R-help
Colleagues, I've got several text files which contain data for each metric I need to report on.One text file contains the serial number data. Another has customer and work order number. Another has test data. All text files have the same number of rows but all have different numbers of columns.

[R] pdf_combine error message

2019-11-27 Thread Thomas Subia
to 500. I reran pdf_combine(files, output= "joined.pdf") and I didn't get a too many open files warning. Is there an R setting which I can change to allow more files to be read? All the best Thomas Subia Statistician / Sr. Quality Engineer IMG Companies  ___

Re: [R] Extract lines from pdf files

2019-11-20 Thread Thomas Subia via R-help
t;,lines) # output for date looks like [1]   6  62 118 174 230 286 342 398 # These are exactly the line positions I need. Now that I've got the desired lines, I don't know how to extract the data from those lines. Any advice would be appreciated. All the best, Thomas Subia Statistici

[R] Extract lines from pdf files

2019-11-19 Thread Thomas Subia via R-help
hescript for this. Some pointers would be appreciated. All the best. Thomas Subia Statistician / Senior Quality Engineer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

[R] Extracting specific lines from pdfs

2019-11-19 Thread Thomas Subia
re a way to format this to display the original data? I'd like to extend this code to all of the pdf files in a directory and to generate a table of all the serial, flatness, parallel1 and parallel2 data. I'm not having a lot of success trying to build the script for this. Some poin

Re: [R] Help for pdf conversion

2019-11-01 Thread Thomas Subia
Jim, That works well! Thanks again for your help! Thomas Subia -Original Message- From: Jim Lemon Sent: Wednesday, October 30, 2019 11:14 PM To: Thomas Subia Cc: r-help@r-project.org Subject: Re: [R] Help for pdf conversion Hi Thomas, Perhaps you should be doing something like

[R] Help for pdf conversion

2019-10-30 Thread Thomas Subia
=TRUE,col.names =FALSE) and examine the output, my output does not match cat(txt[1]). I suspect that sep= "\t",row.names =TRUE,col.names =FALSE) might be the error. How can one output the contents of cat(txt[1]) and retain its format? Thomas Subia [[alternative HTML version

[R] Fw: Sample size required to estimate population variance Solution

2019-07-09 Thread Thomas Subia
found using the equations in the article. All the best, Thomas Subia Quality Engineer / Statistician Fresenius Medical Care North America From: tgs...@yahoo.com Sent: Tuesday, July 9, 2019 8:01 AM To: Thomas Subia Subject: [EXTERNAL EMAIL] Fw: [R] Sample size required to estimate population

Re: [R] Sample size required to estimate population variance

2019-07-04 Thread Thomas Subia via R-help
m not sure whether the pwr package does that. On Thursday, July 4, 2019, 4:31:44 PM PDT, John wrote: On Tue, 2 Jul 2019 22:23:18 +0000 (UTC) Thomas Subia via R-help wrote: > Colleagues, > Can anyone suggest a package or code which might help me calculate > the minimum samp

[R] Sample size required to estimate population variance

2019-07-02 Thread Thomas Subia via R-help
Colleagues, Can anyone suggest a package or code which might help me calculate the minimum sample size required to estimate the population variance? I can do this in Minitab but I'd rather do this in R. Thomas Subia [[alternative HTML version de

[R] Post Hoc for Homogeneity of variance

2019-06-03 Thread Thomas Subia via R-help
Colleagues, When using Levene's test, I can identify if there are any differences in variance between factors. This is straight forward Is there a way to do a post hoc test to identify variance differences between factors? This is not so straight forward. All the best Thomas

[R] High p-value

2019-03-20 Thread Thomas Subia via R-help
s that they differ by some other location shift (and the one-sided alternative "greater" is that A is shifted to the right of B). You observed that the medians are different. While the medians may be different, the test is dependent on ranks not

[R] About wilcox test

2019-03-12 Thread Thomas Subia via R-help
Javid wrote: "I have two set of data in excel: A column( 16.38, -31, -16.77, 127, -57, 23.44 and so on) B column ( -12, -59.23, -44, 34.23, 55.5, -12.12 and so on) I run the wilcox test as : wilcox.test(A , B, data = mydata, paired = FALSE) I got always the p value very high, like 0.60 Even I

[R] read_xl question

2019-01-23 Thread Thomas Subia via R-help
t;Flow Data",range=("b9:c10"))   How can I do this for all my Excel files in the directory?   I can get the list of Excel files using: files =list.files(pattern="*.xls") But I’m not sure where to go from here. Some guidance would be appreciated.   All the best  Thomas

[R] ggplot2 error

2017-11-09 Thread Thomas Subia via R-help
Hello all, Zeki(?) reported: > ggplot(data = mtcars, aes(x= wt, y= mpg)) + geom_line() > Error: Found object is not a stat. Using R v3.4.62 and R studio, I'm unable to reproduce this error. All the best, Thomas Subia [[alternative HTML vers

[R] difftime in years

2016-08-04 Thread Thomas Subia via R-help
Colleagues, age_days <- difftime(Date,DOM,units="days") date_vals$age_yrs <- age_days/365.242 I'm trying to calculate the number of years between DOM and Date. The output reads DOM Date age_yrs 1 2005-04-04 2015-05-13 10.10563 days How doe

[R] identifying outliers

2016-04-06 Thread Thomas Subia via R-help
see your three outliers myboxplot$out # it will print the values of the outliers How does one amend this code to produce the outliers by a group? All the best, Thomas Subia [[alternative HTML version deleted]] __ R-help@r-project.org