a and fig_descrip in the function
> body, call your function with:
>
> plot_f1(indata=v5, n1=114, n2=119, n3=116, fig_descrip="Figure 2a\nChange in
> Composite Score at Visit 5 (Day 31)\nPer Protocol Population")
>
> and you should be fine.
>
> HTH
>
>
ot;, n1, ")"), paste0("Low Dose (N=", n2, ")"),
> paste0("High Dose (N=", n3, ")"))
> should do it.
>
> I was taught a long ago that attach() should be avoided to avoid name
> conflicts. Also, it makes it difficult to figure out which dat
ong ago that attach() should be avoided to avoid name
> conflicts. Also, it makes it difficult to figure out which data is actually
> being used.
>
> HTH
> Ulrik
>
> On Tue, 9 May 2017 at 06:44 Gerard Smits <mailto:smits.gerar...@gmail.com>> wrote:
> Hi All,
>
Hi All,
I thought I’d try to get a function working instead of block copying code and
editing. My backorund is more SAS, so using a SAS Macro would be easy, but not
so lucky with R functions.
R being used on Mac Sierra 10.12.4:
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C)
Hi David,
That worked perfectly. I had tried something like that, but obviously messed
up the change.
Thanks for your help. Much appreciated.
Gerard
On Jan 19, 2014, at 2:16 PM, David Winsemius wrote:
>
> On Jan 19, 2014, at 1:13 PM, Gerard Smits wrote:
>
>> Hi All,
>&
references to font
size in the code. Digitize changes the number size on the x-axis, but dont
see a corresponding way of making the labeling size smaller.
Using R 3.0.2
Any suggestions appreciated.
Gerard Smits
fplot=function (labeltext, mean, lower, upper, align = NULL, is.summary =
FALSE
That explains it. Thanks for the info. Gerard
On Aug 30, 2013, at 8:42 AM, Marc Schwartz wrote:
>
> On Aug 30, 2013, at 10:26 AM, Gerard Smits wrote:
>
>> Hi All,
>>
>> This is a variant of a problem I posted yesterday (see below) where I found
>> I had
(N=",.(ss),")"))),
xlab="Baseline xyz",
ylab="Month 18 DAS28",
legend.plot=F)
Prior, related post:
On Aug 29, 2013, at 2:00 PM, Gerard Smits wrote:
> Hi All,
>
> I'm using R 3.0.0. I'm trying to add the sample size of the pa
Hi All,
I'm using R 3.0.0. I'm trying to add the sample size of the paired data
(calculated by a function n(), which returns a value of 70, correctly).
My main title works fine except that the '70' appears far to the right on the
line as in:
at Month 18 (N=
Dumb error. Thanks for letting me know. Gerard
On Aug 15, 2013, at 11:38 AM, "Richard M. Heiberger" wrote:
> typo
>
> run_plots <- functon()
>
>
> On Thu, Aug 15, 2013 at 1:10 PM, Gerard Smits wrote:
> Hi All,
>
> I have a number of plots to run
Hi All,
I have a number of plots to run and was hoping to use a function instead of
bock copying my code and retyping my parameters.
I am using R 3.0.0 on a mac.
My code is as follows:
library (car)
cres<-read.csv("//users//smits//r_work//cres.csv", header = TRUE)
attach(cres);
run_plots <- f
uot;24:00",
>> "04:00", "08:00"), cex=0.8)
>>
>
> You need the xaxt="n" in the plot statement, and the correct form is at=0:6
>
> Sarah
>
> On Mon, Feb 20, 2012 at 6:39 PM, Gerard Smits wrote:
>> Hi All,
>>
>
Hi All,
I'm trying to label my plot axis with times (HH:MM) that correspond to a
numeric index (values 0:6) for my time variable. I'd like to plot "08:00",
"12:00", and so on, instead of 0 through 6.
I have used the following line of code:
axis(1, 0:6, labels=c("08:00", "12:00", "16:00", "2
Hi All,
I am using the package, cmprisk, to plot competing risks. In my case, I have
four lines showing risk of going on dialysis (by a lab test [fgf-23] in
quartiles), where the 4 lower lines are for the competing risk of death.
I am trying to edit the function to just plot the upper curves (
Hi David,
Just changed to the standard plot from xyplot and it worked fine. I'll check
out panel.lmline.
Thanks for your help.
Gerard
On Oct 6, 2010, at 3:27 PM, David Winsemius wrote:
>
> On Oct 6, 2010, at 5:56 PM, Gerard Smits wrote:
>
>> Hi All,
>>
>>
Hi All,
I am running a scatter plot and trying to add a best fit line. I use an abline
function, but get no line drawn over the points. I also get no error. I arm
using V 2.10.0 on Windows 7.
Here is my code, including the SAS transport file import:
require (foreign)
require (chron)
require
All,
I am trying to put a few special symbols into a string to place on a graph
(e.g., >= and superscript 2).
This clearly works, but does not look good: text<-c("x2", "A>=B")
I tried pasting in the >= symbol, but just comes out as an =.
I have tried expression() with no luck: text<-c("x2
Yes, my R is a few versions old. I did not realize that the package
version was dependent on the R version. Thanks. Gerard
PS was able to apply the code suggested by David W. to the 2.14
version and got it to work.
At 12:32 AM 3/22/2009, Thomas Lumley wrote:
>On Sat, 21 Mar 2009, Ger
hed packages:
>[1] rmeta_2.15 zoo_1.5-5
>loaded via a namespace (and not attached):
>[1] lattice_0.17-20 tools_2.8.1
>--
>David Winsemius, MD
>Heritage Laboratories
>West Hartford, CT
>On Mar 21, 2009, at 2:01 PM, Gerard Smits wrote:
>
>>Hi David,
>>
>>I just c
ices utils datasets
>methods base
>other attached packages:
>[1] rmeta_2.15 zoo_1.5-5
>loaded via a namespace (and not attached):
>[1] lattice_0.17-20 tools_2.8.1
>--
>David Winsemius, MD
>Heritage Laboratories
>West Hartford, CT
>On Mar 21, 2009, at 2:01 PM, Gerard S
Hi David,
I just checked to make sure I had the latest version. I see no
boxsize option in the forestplot function parameters or any other
place in the code.
function (labeltext, mean, lower, upper, align = NULL, is.summary = FALSE,
clip = c(-Inf, Inf), xlab = "", zero = 0, graphwidth =
Hi All,
I have been able to modify the x-axis to start at zero by adding xlow
and xhigh parameters; that was pretty simple. I have been unable to
find the location of the code that would turn off the information
weighting of the box size (I have smaller randomized trials getting
less weight t
It seems that SAS is willing to offer this interface if you are
willing to purchase one of their expensive add-on packages. Not surprising.
Gerard Smits
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https
I am a reasonable programer (other than with R), but have not been
able to decipher what I should be modifying. Any suggestions will be
appreciated.
Thanks,
Gerard Smits
At 02:32 PM 9/7/2007, Gerard Smits wrote:
>Hi R users,
>
>I have a test dataframe ("file1," shown below) f
Thanks for cumprod() and prod().
I should have tried the help.search first. Next time
Gerard
At 04:55 PM 1/12/2008, Gabor Grothendieck wrote:
>help.search("product")
>
>On Jan 12, 2008 7:38 PM, Gerard Smits <[EMAIL PROTECTED]> wrote:
> > All,
> >
>
All,
I would like to find a simper method that I now have to find the
product of all elements in a vector:
#get product of vector elements: (1,2,3,4,5)
vec.product <- exp(sum(log(c(1,2,3,4,5
I have not found a vector product function, if one has been written.
Thanks,
Gerard
[[al
e are accepted with a warning, but only
> the first element is used. Other types are coerced to
> logical if possible, ignoring any class.
>...
>
>The ifelse statement check the condition for each element of your
>input (returning
>a value with the same shape
mp; bmi>30, 1, 0))
>
>HTH
>
>-Christos
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Gerard Smits
> > Sent: Tuesday, January 01, 2008 5:04 PM
> > To: r-help@r-project.org
> > Subject: [R] i
Hi All,
I have a small dataset named das (43 cases) in which I am trying to
create a binary outcome (1/0) based on the following code:
if (das$age>65 && das$bmi>30) {das$danger<-1} else das$danger<-0
I am setting a flag called 'danger' to 1 of the subject is over 65
and has a BMI > 30.
I fin
Hi Stephen,
Not responding to the R memory question, but to the racing.
I worked on this many years ago and found no way of overcoming the
19% or so paramutual take. That being said, I suggest you take class
into account (based on purse, type of race (maiden claiming, claiming
$, NWxx allowan
Hi all,
Thanks for the suggestions. I have not yet tried the apply ()
approach, but have tried to get the indexed version working, so far
with limited success. I realize that a transpose, as suggested,
would work, but want to avoid that for something simpler.
To repeat, the task is to perform
Hi All,
There are a variety of functions that can be applied to a variable
(column) in a data frame: mean, min, max, sd, range, IQR, etc.
I am aware of only two that work on the rows, using q1-q3 as example
variables:
rowMeans(cbind(q1,q2,q3),na.rm=T) #mean of multiple variables
rowSums (cbi
32 matches
Mail list logo