Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

228 results for “from:Jinsong Zhao”

How to plot? stack line plot with different Y axis
Jinsong Zhao · Mar 16, 2014 · r-help

Hi there, I just find a fancy plot like the following: http://www.nature.com/nature/journal/v505/n7481/images_article/nature12784-f2.jpg I am wondering how to plot something like that in R. Which package will be convenient...

class of strptime() output
Jinsong Zhao · Jan 5, 2015 · r-help

Hi there, In the following code snippet, # a <- strptime("121114 0510", "%m%d%y %H%M") b <- data.frame(date = a, res = 1:5) class(a) class(b[1,1]) # I am wondering why the class of a and b...

[R-sig-dyn-mod] how to model equation with two differential variable?
Jinsong Zhao · May 16, 2014 · r-sig-dynamic-models

Hi there, Don't know if the subject is reasonable. In the model I am trying to solve have a function like: Pi = a * dPhi/dt + b * dAlpha/dt + c dPhi/dt = .... dAlpha/dt = .... I don't know how to...

! in expression(!abc) that produces !(abc).
Jinsong Zhao · Mar 27, 2017 · r-help

Hi there, I happened to find the expression(!abc) produces !(abc) when I used plotmath in a text annotation. Here is the mini-example. > plot(1, type = "n") > text(1,1, expression(!abc)) I don't find "!" in plotmath document...

same column name in a data frame
Jinsong Zhao · Mar 13, 2017 · r-help

Hi there, I happened to find the following code can generate a data frame with same column name. > x <- data.frame(a=c(1,2,3)) > y <- data.frame(a=c(2,3,4)) > z <- cbind(x,y) However, in...

why sd() can be applied to character vector?
Jinsong Zhao · Oct 27, 2012 · r-help

Hi there, In the following example, sd() can be applied to a character vector. However, mean() can not be run in a similar way. Why? I have read sd() man page, however, I don't find information about that behavior...

bug in devPS.c
Jinsong Zhao · Jul 3, 2010 · r-devel

Hi there, I have filed a bug report at: https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14326. And the related patch is at: https://bugs.r-project.org/bugzilla3/attachment.cgi?id=1113 which will do: 1...

response surface analysis
Jinsong Zhao · Jul 27, 2008 · r-help

Tom La Bone wrote: > There appears to be a very promising response surface package being discussed > at useR-2008, but I have been unable to find the package on CRAN or contact > the authors. > > www.statistik.uni-dortmund.de/useR...

how to extract specific subscript of a matrix
Jinsong Zhao · Jun 10, 2020 · r-help

Hi there, I have a matrix similar as: M <- matrix(c(2,2,rep(1,12), 2), nrow = 5,byrow = FALSE) I hope to get the border subscript of the block with value 1. In the above example, I hope...

[R-sig-dyn-mod] How to change a parameter after steady?
Jinsong Zhao · Apr 25, 2014 · r-sig-dynamic-models

Hi there, I have established a model. I set the times to a enough long period, so that the model runs into steady state. After the model reaching steady, I hope to change a or several parameters and run the...

Instrumental Variables Regression
Jinsong Zhao · Dec 15, 2009 · r-help

Hi there, I hope to build a model Y ~ X1 + X2 + X3 + X4 with X1 has two instrumental variable A and B, and X2 has one instrumental variable A. I have searched the R site and mailling list, and known...

how to locate specific line?
Jinsong Zhao · Jul 27, 2018 · r-help

Hi there, I have a large/huge text file. I need to locate a line in the file with a specific string, for example, "Data Points". Now, I use the following code to do: df <- readLines(file) l <- grep("Data...

multiple comparison of interaction of ANCOVA
Jinsong Zhao · Dec 12, 2011 · r-help

On 2011-12-11 22:49, Bert Gunter wrote: > Inline below. > -- Bert > > Graph the data sensibly to figure out what's going on. Statistical > machinationsand anova tables with P values alone are not sufficient > and can be opaque or misleading...

problem to get coefficient from lm()
Jinsong Zhao · Feb 6, 2004 · r-help

Dear John, Thank you very much for your response. I made a mistake for my careless. I used the same data in Excel, and regressed x on y, and got a different equation, and then compared it to what I...

legend for the plot with type = "b"
Jinsong Zhao · Sep 22, 2013 · r-help

Hi there, I plot a simple plot with the following code: plot (rnorm(1:10), type = "b") legend("top", "test", lty = 1, pch = 21) The result is something wired for the line crosses the point in the legend while the...

how to define the bound between parameters in nls()
Jinsong Zhao · Nov 17, 2011 · r-help

Hi there, I have read the help page of nls(), there is lower or upper for defining the bounds of parameters. For example, nls(y ~ 1-a*exp(-k1*x)-(1-a)*exp(-k2*x), data=data.1, start=list...

different offset for each label?
Jinsong Zhao · Mar 28, 2012 · r-help

Hi there, I hope to give a different offset for each label in a complex plot. However, the following code does not work. > plot(1:4) > text(c(1:4), letters[1:4], pos = c(4,3,2,1), offset...

graphic device MetaPost
Jinsong Zhao · Mar 7, 2004 · r-help

Hi all, By default, MetaPost passes all text through TeX. This has the advantage of allowing essentially any TeX symbols in titles and labels. It give us, who use the multibyte character in ordinary communication, much convenience. Gnuplot has fulfilled...

Fisher's LSD multiple comparisons in a two-way ANOVA
Jinsong Zhao · Apr 4, 2012 · r-help

On 2012-04-03 20:03, Rmh wrote: > yes. See ?glht in the multcomp package, and the examples using glht in ?MMC in the HH package. > > Sent from my iPhone > Thank you very much for the clues. However, I can...

tempdir() does not respect TMPDIR
Jinsong Zhao · Aug 29, 2020 · r-help

Hi there, When I started R by double clicking on Rgui icon (I am on Windows), the tempdir() returned the tmpdir in the directory I set in .Renviron. If I started R by double clicking on a *.RData file, the...

Can't find what you're looking for? Try searching with Google .