Displaying 20 results from an estimated 2000 matches similar to: "xyplot: logarithmic y-axis"
2006 Dec 14
2
xyplot: discrete points + continuous curve per panel
I have a number of x, y observations (Time, Conc) for a number of Subjects
(with subject number Subj) and Doses. I can plot the individual points with
xyplot fine:
xyplot(Conc ~ Time | Subj,
Groups=Dose,
data=myData,
panel = function(x,y) {
panel.xyplot(x, y)
panel.superpose(???) # Needs more here
}
)
I also like to plot on
2006 Dec 14
1
Reverse order of grouping factor in grouppedData
I created the following groupedData object (nlme library):
gd <- groupedData(Conc ~ Time | Subj,
order.groups=T,
FUN = myf,
data=mydata)
The idea of the myf function is to reverse the order of the grouping factor
Subj (or better, reorder from largest to smallest). In the mydata data set,
Subj is an integer that gets converted into a factor in the groupedData
object.
Does anyone
2007 Feb 21
3
Different gridlines per panel in xyplot
In the example R script below, horizontal gray gridlines are drawn at y
coordinates where the points are drawn with the code:
panel.abline(h=y, v=xScale, col.line="gray")
How do I change this so that the horizontal gray gridlines are drawn at y
coordinates where the y labels are drawn? The challenge is that each panel
has different y-ranges (in my real example the y-ranges and
2007 Feb 20
1
How to avoid sort of x values in dotplot?
I am trying to avoid that dotplot sorts my x-values. They are in the correct
order in the data.frame and the connections between the x-y values follows
this order, but the placement of the x-values on the x-axis is re-ordered.
In the following example, the order should be "d1", "d8" and "d15". However,
this script places "d8" at the highest x position. Any
2019 Jun 24
1
Calculation of e^{z^2/2} for a normal deviate z
>>>>> jing hua zhao
>>>>> on Mon, 24 Jun 2019 08:51:43 +0000 writes:
> Hi All,
> Thanks for all your comments which allows me to appreciate more of these in Python and R.
> I just came across the matrixStats package,
> ## EXAMPLE #1
> lx <- c(1000.01, 1000.02)
> y0 <- log(sum(exp(lx)))
> print(y0) ## Inf
2019 Jun 24
2
Calculation of e^{z^2/2} for a normal deviate z
>>>>> William Dunlap via R-devel
>>>>> on Sun, 23 Jun 2019 10:34:47 -0700 writes:
>>>>> William Dunlap via R-devel
>>>>> on Sun, 23 Jun 2019 10:34:47 -0700 writes:
> include/Rmath.h declares a set of 'logspace' functions for use at the C
> level. I don't think there are core R functions that call
2012 Feb 21
2
Using substitute in nested function calls
Dear List members,
I really, like the feature that one can call R functions with
mathematical expressions, e.g.
curve(x^2, 0, 1)
I wonder, how I can construct in a simple way a function like
mycurve = function (expr) {...}
such that that a call
mycurve(x^2)
has the same effect as the call
curve(x^2, -100,100)
Below is some code that works, but it seems much to complicated: it
first
2009 May 21
2
Naming a random effect in lmer
Dear guRus:
I am using lmer for a mixed model that includes a random intercept for a
set of effects that have the same distribution, Normal(0, sig2b). This set
of effects is of variable size, so I am using an as.formula statement to
create the formula for lmer. For example, if the set of random effects has
dimension 8, then the lmer call is:
Zs<-
2003 Oct 22
1
: Prediction interval for a Gaussian family log-link model
Hi there fellow R-users,
Can anyone tell me how to build a prediction interval for a gaussian
log-link model for the reponse variable??
I can find the standard error of the predictions but I cant seem to find the
prediction interval. Is there a way I can calculate the
prediction interval from the standard errors??
Here's the example:
logX<-rnorm(100)
2012 Aug 07
2
Passing arguments to a function within a function ...
Hallo Everybody
How do you specify arguments for a function used within another function?
Here is my problem:
I am reconstructing a calculator for the burden of disease due to air
pollution from publications and tools published by the WHO. The
calculations make use of published dose-response relationships for
particular health end-points. This is then applied to populations with
known or
2008 Apr 16
1
Confidence intervals of log transformed data
Hi
I have a general statistics question on calculating confidence interval of
log transformed data.
I log transformed both x and y, regressed the transformed y on transformed
x: lm(log(y)~log(x)), and I get the following relationship:
log(y) = alpha + beta * log(x) with se as the standard error of residuals
My question is how do I calculate the confidence interval in the original
scale of x
2006 Nov 14
3
Plot title with numeric variables
I am trying to create a plot title in R with substitution by a numeric
variable (Figure number N) within the text which is bold and has a
subcripted part as well. Here is what I have:
title <- expression(bold(paste("Figure ", N, ": Plot ", C[max], " versus
CrCL")))
plot(1, main="") # Simple plot for testing
N <- 5
mtext(title, line=3, font=2,
2006 Jan 05
4
ylim problem in barplot
R Version 2.2.0
Platform: Windows
When I use barplot but select a ylim value greater than zero, the graph
is distorted. The bars extend below the bottom of the graph.
For instance the command produces a problematic graph.
barplot(c(200,300,250,350),ylim=c(150,400))
Any help would be appreciated.
Paul
[[alternative HTML version deleted]]
2006 Dec 15
1
xyplot: legend title + legend on 1 line
Does anybody know how in xyplot to put the legend title on one line with the
legend? I can get the legend on one line with columns=... but the title is
always on top. I tried a custom key with key=... and text=... but I can't
put the title text in front of the plotting symbol.
I am looking for the following layout of the legend, on one line:
"Legend Title:" + plot symbol1 + legend
2009 Sep 21
2
logarithmic seq() ?
Hello,
in scilab /Matlab there are functions that can create linear sequences (like R's
seq()) as well as logarithmic sequences.
Is there a logarithmic aequivalent of seq()?
Or maybe this would be an idea for newer R-releases,
maybe a type-option with "linear" and "logarithmic" as
parameters....?!
Ciao,
Oliver
2011 Dec 05
1
explanation why RandomForest don't require a transformations (e.g. logarithmic) of variables
Dear Researches,
sorry for the easy and common question. I am trying to justify the idea of
RandomForest don't require a transformations (e.g. logarithmic) of
variables, comparing this non parametrics method with e.g. the linear
regressions. In leteruature to study my phenomena i need to apply a
logarithmic trasformation to describe my model, but i found RF don't
required this approach.
2011 Jul 12
1
High density scatter plot with logarithmic binning
How can perform logarithmic binning in the scatterplot? I could only take the
log of the variables and plot them, but I am sure that is not the way. I
have a very huge data, and would want to plot those high density
scatterplots and code then with different colors for the bins/density.
--
View this message in context:
2006 Nov 17
2
Numbers with correct significant digits
This, for example:
v <- c(9.6996, 99.99)
formatC(v, digits=3, format="g")
shows:
" 9.7" " 100"
This is scientifically incorrect for the first number in the sense that I
like to show all 3 significant digits, including trailing zero's.
Is there a way that the first number would show as " 9.70"?
By the way, can't use format() since it applies
2012 Jan 06
1
Can levelplot colorkeys display a logarithmic scale evenly?
I'm using the {lattice} "levelplot" function to make a (more or less) 2-d
histogram, and for the most part it's working fine with my data. However, I
can't get the color key to do what I need. I can give it labels and custom
cutoffs, but my cutoff lines (and hence my labels) aren't evenly spaced, instead
they're more-or-less logarithmic, starting at
2007 Mar 07
0
PeriodicalUpdater with Logarithmic decay
Greetings all,
So, I''ve finally found a place to play around with the
Ajax.PeriodicalUpdater. In looking at the API, I''m liking the decay
option -- not necessarily for my current purpose, but just to keep in
mind -- and I have a question: can the decay be a function which
returns an integer? Basically, why I''m looking for is a logarithmic
decay (where the system