[R] Managing axis labels

2017-03-28 Thread Naser Jamil
Dear R-users, I would like to ask probably a silly thing. For some reason, I need x-axis and y-axis labels to be of different size. Here is a little example where I want "ϑ" to appear bigger than "Concentration". I have tried in the following way, but it is not working. ​ x<-seq(1,10,1) y<-seq(2,2

Re: [R] No visible binding for global variable

2017-01-29 Thread Naser Jamil
s > McMaster University > Hamilton, Ontario, Canada > Web: http::/socserv.mcmaster.ca/jfox > > > On Jan 27, 2017, at 10:43 AM, Naser Jamil > wrote: > > > > Dear R-users, > > I would like to seek your suggestion. I have the following code which > runs >

[R] No visible binding for global variable

2017-01-27 Thread Naser Jamil
Dear R-users, I would like to seek your suggestion. I have the following code which runs smoothly. But when I compile the function (lf1.c), it shows "no visible binding for global variable" for some of the arguments. ### library(compiler) psi0<-function(theta1,th

Re: [R] Superimposing graphs

2014-08-12 Thread Naser Jamil
That's perfect! Many thanks. On 12 August 2014 14:32, Richard M. Heiberger wrote: > Yes, use xlim=c(0, 30) in your definition of P1 > > On Tue, Aug 12, 2014 at 7:26 AM, Naser Jamil > wrote: > > Dear Richard and Duncan, > > your suggestions are absolutely serving

Re: [R] Superimposing graphs

2014-08-12 Thread Naser Jamil
es has > said > > Regards > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 2351 > Email: home: mac...@northnet.com.au > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-pr

[R] Superimposing graphs

2014-08-11 Thread Naser Jamil
Dear R-user, May I seek your help to sort out a little problem. I have the following codes to draw two graphs. I want to superimpose the second one on each of the first one. library(nlme) subject<-c(1,1,1,2,2,2,3,3,3) time<-c(0.0,5.4,21.0,0.0,5.4,21.0,0.0,

Re: [R] skipping an error message

2014-04-07 Thread Naser Jamil
else { >furtherProcessTheModel(model.d) >} > You could also look at the error message that model.d contains in that > case. > > The try() function is essentially that call to tryCatch: it gives its > error output > the class 'try-error'. > > Bill

Re: [R] skipping an error message

2014-04-07 Thread Naser Jamil
. Regards, Jamil. On 6 April 2014 23:51, Jim Lemon wrote: > On 04/06/2014 08:21 PM, Naser Jamil wrote: > >> Dear R-user, >> May I seek your suggestion on an issue. I'm fitting non-linear mixed >> effects >> model as a part of my large R program. But sometimes

[R] skipping an error message

2014-04-06 Thread Naser Jamil
Dear R-user, May I seek your suggestion on an issue. I'm fitting non-linear mixed effects model as a part of my large R program. But sometimes I get error messages from it and the code stops working. In such cases, I want to skip the iterations and want to move to the next iteration ignoring all th

Re: [R] functions and matrices

2013-07-02 Thread Naser Jamil
Thanks to everyone for such nice illustrations. It will guide me for sure. On 2 July 2013 02:56, David Winsemius wrote: > > With permission I offer this exchange. Rolf and I have different notions > of what u %*% v should mean, but the arbiter is obviously the original > poster: > > Begin forwa

[R] functions and matrices

2013-07-01 Thread Naser Jamil
Dear R-user, May I seek your help, please. I have two matrices, u and v, elements of which are some functions of x. I just want to multiply them and express the determinant of the resulting matrix as a function of x and of course, this is for some reason. Actually the original problem has more matr

[R] R for windows GUI front-end has stopped working

2013-05-20 Thread Naser Jamil
Dear R-users, May I seek your attention please! I have a long R code, which runs most of the time quite nicely and provides necessary results. However, often it provides a message like " R for windows GUI front-end has stopped working" and just stops working. I'm running the program in Windows 2007

[R] scan in R

2013-05-12 Thread Naser Jamil
Dear R-user, May I seek your help over a issue, probably a simple one. I just one to scan the following numbers, avoiding [1]s, [2]. By the way, I know how to scan numbers in the absence of such [1] and [2]. -- [1] 18 18 17 14 17 13 13 18 13 16

Re: [R] scanning data in R

2013-04-03 Thread Naser Jamil
- > David L Carlson > Associate Professor of Anthropology > Texas A&M University > College Station, TX 77843-4352 > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Beha

[R] scanning data in R

2013-04-03 Thread Naser Jamil
Dear R-user, May I seek your suggestion. I have a data file 'stop' to be scanned in R. But I want to ignore one specific number '21' there. Putting differently, I want to get all numbers in the file except 21. Is there any command to achieve it? ---

Re: [R] vertical lines in R plot

2013-03-11 Thread Naser Jamil
@r-project.org] > On Behalf > > Of Sarah Goslee > > Sent: Monday, March 11, 2013 8:49 AM > > To: Naser Jamil > > Cc: R help > > Subject: Re: [R] vertical lines in R plot > > > > Like this: > > > > segments(x0=c(5.0,5.5,6), y0=c(0,0,0), x1=c(

[R] vertical lines in R plot

2013-03-11 Thread Naser Jamil
Dear All, May I seek your suggestion on a simple issue. I want to draw vertical lines at some positions in the following R plot. To be more specific, I wish to draw vertical lines at d=c(5.0,5.5,6) and they should go till p=c(0.12,0.60,0.20) . I haven't found any way out, though made several atte

[R] Percentages in bar plot

2013-01-30 Thread Naser Jamil
Dear R-users, Though it's a silly thing to ask, but I'm not getting a way out. I wish to find the percentage distribution for a data vector 'stop'. The coomand below is giving the frequency distribution. May I know the option to see the percentages instead of frequencies. Similarly, what option I

Re: [R] Integration in R

2013-01-08 Thread Naser Jamil
Thanks. But then how to implement condition like 0 wrote: > Please reply on list. > > > On Jan 8, 2013, at 10:27 AM, Naser Jamil wrote: > > Hi David, >> x[2] is the second variable, x2. It comes from the condition 0> > > No, it doesn't come from those con

[R] Integration in R

2013-01-08 Thread Naser Jamil
Hi R-users. I'm having difficulty with an integration in R via the package "cubature". I'm putting it with a simple example here. I wish to integrate a function like: f(x1,x2)=2/3*(x1+x2) in the interval 0https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

[R] Minimizing Computational Time

2012-10-23 Thread Naser Jamil
Dear R-users, May I seek some suggestions from you. I have a long programme written in R with several 'for' loops inside. I just want to get them out by any elegant way (if there is!) to reduce the computational time of the main programme. For instance, is there any smart way for the following prog

[R] PFIM 3.2

2012-10-14 Thread Naser Jamil
Dear R-user, I'm having some difficulty with working PFIM 3.2, a package for implementing population PK/PD in R. I wish to evaluate the determinant of Fisher information matrix each time with successive dose from a pre defined sequence of doses and want to store those values in a vector. It's impor

[R] Integration in R

2012-10-02 Thread Naser Jamil
Dear R-users, I am facing problem with integrating in R a likelihood function which is a function of four parameters. It's giving me the result at the end but taking more than half an hour to run. I'm wondering is there any other efficient way deal with. The following is my code. I am ready to prov