Displaying 20 results from an estimated 2000 matches similar to: "Placing the ≥ symbol in the Trellis custom strip"
2010 Dec 15
5
Solution to differential equation
Hello,
I am trying to find the analytical solution to this differential equation
dR/dt = k1*(R^k2)*(1-(R/Rmax)); R(0) = Ro
k1 and k2 are parameters that need to fitted, while Ro and Rmax are the
baseline and max value (which can be fitted or fixed). The response (R)
increases
initially at an exponential rate governed by the rate constants k1 and k2.
Response has a S-shaped curve as a function
2010 Jul 16
1
Toggle between the various pages for multi-page figures
Hello,
I am a new R user having transitioned over from S-plus recently. I have a
question that is probably very trivial but I am having trouble finding a
solution. In S-plus, graphic pages are created as tabs when multi-page
figures are created. I have shown the R code for xpose.VPC (a function
within library xpose4 for R) where I want the figure from each Strata (STRT)
to displayed on a
2011 Jan 02
1
How to compute the density of a variable that follows a proportional error distribution
Hello,
I am trying to compute the density of a variable k that is either (1)
Normally distributed; (2) Log-Normally distributed; or (3) follows
proportional error distribution. I tried to search R-help and the answer for
normal distribution was easy to find (please see 1c). I am not sure if my
formula for dlnorm is correct (please see 2c below)? I really don't know
what function to use for the
2013 Sep 26
1
Less than equal to symbol in ggplot2 legend text
Hello,
I am trying to add a less than equal to symbol in a ggplot2 legend text.
See sample code below. I have tried using the expression function and
\u2264. I also tried adding labels to legend.text under theme.
Neither of these 3 options work.
Please help,
Mahesh
++++++++++++++
Extra.column=ifelse(data[,covariate]>cutpoint,1,0)
Grp1 <- "\u2264 1.5"
Grp2 <-
2003 Sep 07
3
bug in crossprod? (PR#4092)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@r-project.org
#
######################################################
# The last line of following code produces a segmentation fault:
x <- 1:10
f <- gl(5,2)
2012 Feb 13
2
Error in apply(x2, 1, diff) : dim(X) must have a positive length
Anyone knows hat might be the cause of this error? Thanks for any help!
>library(MASS)
> dif.mns = function(x2,tr1=.2,tr2=.3){
+ #generates four different 'means' using
+ #difference scores from x2, an n x 2 matrix
+ #for use w/ bootstrap comparisons
+ diffs = apply(x2,1,diff)
+ mn1=mean(diffs)
+ mn2=mean(diffs,tr=.2)
+ mn3=mean(diffs,tr=.3)
+
2010 May 26
3
SVN vs DVCS
Hi,
Just wondering whether anyone had thought about moving the R sources
to a "distributed" version control system such as Bazaar, Git or
Mercurial. These new generation systems make it easier to work on
feature branches, allow working offline, are very fast, etc.
Some projects that have moved to Git are
Linux Kernel
Perl
Ruby on Rails
...
http://en.wikipedia.org/wiki/Git_(software)
2010 Apr 20
1
bug in aggregate.ts
Hi,
I am getting unexpected behaviour from aggregate.ts(). The 'ndeltat'
argument is effectively being reduced by 1 in some cases, even when it
is an integer, with the result that the blocks to be aggregated are
not of the expected size, and also that the end() of the aggregated
series is much later than the end() of the original series.
rawts <- ts(rep(1:10, each = 5), start = 1)
##
2018 Apr 27
5
predict.glm returns different results for the same model
Hi all,
Very surprising (to me!) and mystifying result from predict.glm(): the
predictions vary depending on whether or not I use ns() or
splines::ns(). Reprex follows:
library(splines)
set.seed(12345)
dat <- data.frame(claim = rbinom(1000, 1, 0.5))
mns <- c(3.4, 3.6)
sds <- c(0.24, 0.35)
dat$wind <- exp(rnorm(nrow(dat), mean = mns[dat$claim + 1], sd =
sds[dat$claim + 1]))
dat <-
2009 Dec 02
1
Fw: Re: Help: barchart() {Lattice}
I HAVE BEEN ASKED TO BE REMOVED FROM THIS LIST OVER 20 TIMES, PLEASE CAN I BE REMOVED!!!!!!!!!!!!!
--- On Thu, 3/12/09, Peng Cai <pengcaimaillist@gmail.com> wrote:
From: Peng Cai <pengcaimaillist@gmail.com>
Subject: Re: [R] Help: barchart() {Lattice}
To: "Felix Andrews" <felix@nfrac.org>
Cc: r-help@r-project.org
Received: Thursday, 3 December, 2009, 10:17 AM
Got it
2010 Apr 29
3
control span in panel.loess in xyplot
Dear R gurus..
Is it possible to control span settings for different values of a grouping
variable, when using xyplot? an example code shown below
d=data.frame(x=rep(sample(1:5,rep=F),10),y=rnorm(50),z=rep(sample(LETTERS[1:2],rep=F),25))
xyplot(y~x,data=d,groups=z,panel=panel.superpose,panel.groups=panel.loess(span=c(2/3,
3/4,1/2))
or something like..
2010 May 14
2
help color coding map in R
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to match the ranges outlined in the legend. I have tried ordering the mean amounts and this correctly creates
2011 Aug 18
1
Using mixed models to analyze Longitudinal intervention
Dear R List,
I am trying to use mixed models to analyze an intervention and want to make
sure I am doing it correctly. The intervention is for lowing cholesterol
and there are two groups: one with an intervention and one without. The
subjects were evaluated a differing amount of time, so there were between 2
and 7 visits, equally spaced.
Sample output is below. TC is total cholesterol,
2005 Oct 18
3
CAPI - displaying individual MSN
Hi,
I'm currently using chan_capi-cm-0.6, with the following capi.conf:
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=de
[ISDN1]
msn=8304490
incomingmsn=8304490
isdnmode=msn
group=1
controller=1
softdtmf=1
context=demo
echosquelch=1
echocancel=yes
echotail=64
callgroup=1
devices=2
Each user has a different numer, e.g. 83044910, 83044911, 83044912 and
so
2010 Jun 30
1
Solution to differential equation for nls function
Hello,
I am trying to find the analytical solution to this differential equation
dR/dt = k1*R (1-(R/Rmax)^k2); R(0) = Ro
k1, k2, and Rmax are parameters that need to fitted, while Ro is the
baseline value (which can be fitted or fixed). The response (R) increases
initially at an exponential rate governed by the rate constant k1.
Response has a S-shaped curve as a function of time and it
2010 Apr 09
2
lattice background grid
Hi,
I wonder if anyone knows how to control color and darkness of the
background grid generated by ' type = c("g", "p") ' in a lattice plot
(e.g., in xyplot). The documentation does not seem to offer a way to
change them.
Thanks a lot!
Wen
2009 Dec 03
1
how to use different ylim scales on a lattice bwplot?
A colleague is interested in modifying the ylim definition for individual
panels of a common bwplot plotting statement.
Is there an approach to modifying the bwplot function to allow for a
dynamic ylim range given different panel factors ?
He is using R 2.6.2 on a Linux distribution running from a CD.
Thanks for the assistance.
Steve
Steve Friedman Ph. D.
Spatial Statistical Analyst
2009 Dec 13
1
plot merging/compression with R
Dear list,
i just encountered a problem concerning the export of multiple plots. is
it possible to merge several PNGs into one PDF document? i know that
this could be easily done by pdf(), but the outcome of this is /way/ too
huge (> 15 MB, four plots) and to my knowledge there's no way to
compress PDFs directly in R. Hence the PNGs that are saved one at a time
and afterwards merged by
2010 Jun 25
2
Label Values in levelplot
I am trying to add labels equal to the value in a levelplot. I believe that
panel may be the way to go but cannot understand the examples.
In the following example:
X,Y,Z
A,M,100
A,M,200
B,N,150
B,N,225
I would like to label each of the rectangles 100,200,150 and 225 and colour
according to the value
The colouring is achieved by
levelplot(z ~ x *y , data) but then I get stuck with the labels
2010 Jun 25
1
Lattice plotting question
Hi all,
I'm working on some plots using lattice (R 2.10.1), and have entered
the polish phase. I've produced a satisfactory pair of xyplots (
http://imgur.com/EyXGi.png), but would like to align the y-axes of the top
and bottom plots. I assume that I need to adjust axis padding or something,
but I can't figure this one out. Thanks for any help!
Dave
--
Post-doctoral Fellow