search for: jszhao

Displaying 20 results from an estimated 59 matches for "jszhao".

2010 Jun 29
5
More than two font in a plot
...haracters are in CJK font, and it's not what I hope to get. I hope the Latin character is displayed in Helvetica. Any suggestions? Thanks in advance! Regards, Jinsong -- Jinsong Zhao, Ph.D. College of Resources and Environment Huazhong Agricultural University Wuhan 430070, P.R. China E-mail: jszhao at mail.hzau.edu.cn
2017 Dec 13
4
difference between ifelse and if...else?
Hi there, I don't know why the following codes are return different results. > ifelse(3 > 2, 1:3, length(1:3)) [1] 1 > if (3 > 2) 1:3 else length(1:3) [1] 1 2 3 Any hints? Best, Jinsong
2020 Oct 20
1
write.csv covert Åland to <c5>land
...) results [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 I would suggest issuing the command sessionInfo() and seeing what your encoding is. On Tue, 20 Oct 2020 at 08:22, Jinsong Zhao <jszhao at yeah.net> wrote: > Hi there, > > Why the same string is displayed in different form? > > > abc[,1] > [1] "?land" "Afghanistan" > > abc > name > 1 <c5>land > 2 Afghanistan > > And more... > > >...
2017 Dec 13
0
difference between ifelse and if...else?
ifelse is vectorized. On Wed, Dec 13, 2017 at 7:31 AM, Jinsong Zhao <jszhao at yeah.net> wrote: > Hi there, > > I don't know why the following codes are return different results. > > > ifelse(3 > 2, 1:3, length(1:3)) > [1] 1 > > if (3 > 2) 1:3 else length(1:3) > [1] 1 2 3 > > Any hints? > > Best, > Jinsong > &gt...
2010 Jun 30
2
plain text in Chinese can not be set
...:10) text(5,4, "\u4F60\u597D", family="GB1", font = 4) ## symbol text(5,5, "is 'hello' in Chinese", font = 4) # bold italic dev.off() -- Jinsong Zhao, Ph.D. College of Resources and Environment Huazhong Agricultural University Wuhan 430070, P.R. China E-mail: jszhao at mail.hzau.edu.cn
2023 Mar 31
1
single character in R, and how to manipulate it
Hi Jinsong, Maybe "srt" will do what you want. As you noted non-orthogonal rotations may not work on some devices. You may be able to download mirror fonts from places like fontmirror.com, but it more complicated. Jim On Thu, Mar 30, 2023 at 7:25?PM Jinsong Zhao <jszhao at yeah.net> wrote: > > Hi there, > > > I just noticed that "crt" is a graphical parameter, which is stated as follows in the help page of "par": > A numerical value specifying (in degrees) how single characters should be rotated. It is unwise to expect valu...
2024 Feb 04
1
Help
...the graph: Warning message: In lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : extra argument ?col? will be disregarded. My regards. *Jibrin Adejoh Alhassan (Ph.D)* Department of Physics and Astronomy, University of Nigeria, Nsukka On Sun, Feb 4, 2024 at 3:21?PM Jinsong Zhao <jszhao at yeah.net> wrote: > ?plotmath > > expression(R^2==0.62) > > On 2024/2/4 18:10, Jibrin Alhassan wrote: > > I have done a scatter plot in R. I want to insert the coefficient of > > determination R^2 = 0.62 as a text in the plot. I have tried to write R^2 > > but...
2023 Mar 31
1
single character in R, and how to manipulate it
...> Maybe "srt" will do what you want. As you noted non-orthogonal > rotations may not work on some devices. You may be able to download > mirror fonts from places like fontmirror.com, but it more complicated. > > Jim > > On Thu, Mar 30, 2023 at 7:25?PM Jinsong Zhao <jszhao at yeah.net> wrote: > > > > Hi there, > > > > > > I just noticed that "crt" is a graphical parameter, which is stated as follows in the help page of "par": > > A numerical value specifying (in degrees) how single characters should be rotate...
2024 Feb 04
1
Help
...(x, y, offset = offset, singular.ok = singular.ok, ...) : > extra argument ?col? will be disregarded. > My regards. > *Jibrin Adejoh Alhassan (Ph.D)* > Department of Physics and Astronomy, > University of Nigeria, Nsukka > > > On Sun, Feb 4, 2024 at 3:21?PM Jinsong Zhao <jszhao at yeah.net> wrote: > >> ?plotmath >> >> expression(R^2==0.62) >> >> On 2024/2/4 18:10, Jibrin Alhassan wrote: >> > I have done a scatter plot in R. I want to insert the coefficient of >> > determination R^2 = 0.62 as a text in the plot. I have...
2024 Feb 04
2
Help
....ok = singular.ok, ...) : >> extra argument ?col? will be disregarded. >> My regards. >> *Jibrin Adejoh Alhassan (Ph.D)* >> Department of Physics and Astronomy, >> University of Nigeria, Nsukka >> >> >> On Sun, Feb 4, 2024 at 3:21?PM Jinsong Zhao <jszhao at yeah.net> wrote: >> >>> ?plotmath >>> >>> expression(R^2==0.62) >>> >>> On 2024/2/4 18:10, Jibrin Alhassan wrote: >>> > I have done a scatter plot in R. I want to insert the coefficient of >>> > determination R^2 = 0.6...
2011 Dec 11
2
multiple comparison of interaction of ANCOVA
Hi there, The following data is obtained from a long-term experiments. > mydata <- read.table(textConnection(" + y year Trt + 9.37 1993 A + 8.21 1995 A + 8.11 1999 A + 7.22 2007 A + 7.81 2010 A + 10.85 1993 B + 12.83 1995 B + 13.21 1999 B + 13.70 2007 B + 15.15 2010 B + 5.69 1993 C + 5.76 1995 C + 6.39 1999
2024 Feb 05
1
Help
...gument ?col? will be disregarded. > > > My regards. > > > *Jibrin Adejoh Alhassan (Ph.D)* > > > Department of Physics and Astronomy, > > > University of Nigeria, Nsukka > > > > > > > > > On Sun, Feb 4, 2024 at 3:21?PM Jinsong Zhao <jszhao at yeah.net> > > > wrote: > > > > > > > ?plotmath > > > > > > > > expression(R^2==0.62) > > > > > > > > On 2024/2/4 18:10, Jibrin Alhassan wrote: > > > > > I have done a scatter plot in R. I want to i...
2018 Aug 06
0
[R] MASS::boxcox "object not found"
...obj$call$formula <- formula(obj) lam <- boxcox(obj) ... I'm not sure whether this is actually fixable. It is the kind of thing where you tend to discover that someone, somewhere has actually been relying on current behaviour... -pd > On 5 Aug 2018, at 14:36 , Jinsong Zhao <jszhao at yeah.net> wrote: > > Hi there, > > I wrote a function that wraps MASS::boxcox as: > > bc <- function(vec) { > lam <- boxcox(lm(vec ~ 1)) > lam <- lam$x[which.max(lam$y)] > (vec^lam - 1)/lam > } > > When I invoke it as: > >> x &l...
2024 Feb 04
1
Help
?plotmath expression(R^2==0.62) On 2024/2/4 18:10, Jibrin Alhassan wrote: > I have done a scatter plot in R. I want to insert the coefficient of > determination R^2 = 0.62 as a text in the plot. I have tried to write R^2 > but could not produce R2. I would appreciate it if someone could help me > with the syntax. I have tried: expression(paste("", R^2,"=",
2010 Jul 02
0
PDFfontNumber bugs in devPS.c (Re: plain text in Chinese can not be set)
...dfontIndex)) { - num = 1000 + (cidfontIndex - 1)*5 + 1 + face; + num = 1000 + (cidfontIndex - 1)*5 + face; } else { cidfontfamily = NULL; Regards, Jinsong -- Jinsong Zhao, Ph.D. College of Resources and Environment Huazhong Agricultural University Wuhan 430070, P.R. China E-mail: jszhao at mail.hzau.edu.cn
2011 Feb 06
1
Confidence interval based on MLE
Hi there, I have fitted a sample (with size 20) to a normal and/or logistic distribution using fitdistr() in MASS or fitdist() in fitdistrplus package. It's easy to get the parameter estimates. Now, I hope to report the confidence interval for those parameter estimates. However, I don't find a function that could give the confidence interval in R. I hope to write a function, however,
2006 Mar 28
1
How to remove the outer rectangle in 3D plot/surface.
Hello, I plot a 3D plot/surface using cloud function in lattice package. Several days ago, I post a question about how to remove the framebox out the 3D plot/surface. However, I think I don't make me understood clearly. I just hope to romove the outer rectangle or box around the box. Thanks again. Regards, Jinsong Zhao
2008 Jul 26
2
response surface analysis
Hi, Is there a package that could do response surface analysis equivalent to SAS RSREG procedure? Thanks! Regards, Jinsong
2011 Nov 18
0
how to define the bound between parameters in nls() (Jinsong Zhao)
...IC, but it still runs (DOSBOX is a friend for Linux users). That book can be obtained free from http://macnash.telfer.uottawa.ca/nlpe/. Best, JN On 11/18/2011 06:00 AM, r-help-request at r-project.org wrote: > Message: 4 > Date: Thu, 17 Nov 2011 20:42:12 +0800 > From: Jinsong Zhao <jszhao at yeah.net> > To: "r-help at r-project.org" <r-help at r-project.org> > Subject: [R] how to define the bound between parameters in nls() > Message-ID: <4EC50124.309 at yeah.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi there,...
2012 Apr 03
1
Fisher's LSD multiple comparisons in a two-way ANOVA
Hi there, Is there a function that can do a Fisher's LSD multiple comparisons in a two-way ANOVA? I hope to get a result similar with TukeyHSD(). Especially, I hope to know the significance of comparisons between the interactions of two factors. In the following example: x <- c(76, 84, 78, 80, 82, 70, 62, 72, 71, 69, 72, 74, 66, 74, 68, 66, 69, 72, 72, 78, 74, 71, 73, 67, 86, 67, 72,