Displaying 20 results from an estimated 400 matches similar to: "superimposing xyplots on same scale"
2010 Jan 06
2
problem with strptime and 2010 dates
Hi, I'm reading data from a text file and transforming it in R and my date
column seems to be getting corrupted. Can someone point out what's wrong?
This code worked fine until I added a new date in 2010.
thank you.
To load the data I run:
work_table = read.table(datafilename,header=TRUE) #read the
data file
attach(work_table)
2005 Apr 19
1
Strange behavior in Lattice when superimposing
Hi,
I am trying to do a simple superimposing of two density plots and am
seeing strange behavior (I haven't seen this reported elsewhere). This
little snipit will make it apparent...
a = rnorm(10)
b = rnorm(100, mean=-2, sd=0.5)
densityplot( ~ a + b)
This is supposed to superimpose the two distributions on the plot, as
if they were in different "groups". But the resulting
2004 Mar 01
2
superimposing two scatterplots
Hi,
How can I plot two scatterplots on the same, one panel?
I have two times series (price data for two goods) for the same period.
Many thanks,
-R
[[alternative HTML version deleted]]
2011 Jul 06
1
superimposing network graphs
Dear all,
I have a undirected network (g), representing all the sexual relationships that ever existed in a model community.
I also have a directed edgelist (e) which is a subset of the edgelist of g. e represents the transmission pathway of HIV.
Now I would like to superimpose the picture of the sexual relationships with arrows in a different colour, to indicate where in the network HIV was
2008 Nov 14
1
Superimposing y-variables in Lattice formulas
Given a data frame of a categorical variable and two continuous
variables, I would like to display one continuous variable against the
other for each value of the categorical variable, all superimposed on
the same plot. For example:
data(Indometh); str(Indometh)
Classes 'nfnGroupedData', 'nfGroupedData', 'groupedData' and
'data.frame': 66 obs. of 3
2006 Jun 28
1
superimposing histograms
I want to superimpose histograms from three populations onto the same graph,
changing the shading of the bars for each population. After consulting the
help files and the archives I cannot find out how to do this (seemly) simple
graph. To be clear, I want
- a single x axis (from -3 to 18)
- three groups of bars forming the histograms of each population (they will
not overlap much, but this is
2010 Dec 03
1
mgcv package plot superimposing smoothers
Dear R help list,
I'm fitting a 'variable coefficient model' in the MGCV package and I want to
plot the different smoothers I get for each factor level in one graph.
So, I do something like this to fit the gam:
Mtest <- gam(outcome ~ s(age, by=as.numeric(gender==0)) +
s(age,by=as.numeric(gender==1))+factor(Gender))
Then I can plot the smoother for gender=0:
plot(Mtest,select=1)
2006 Jun 28
0
superimposing histograms con't [Broadcast]
I wrote some code to do this. It only works with 2 groups (that's all I
needed), but could probably be generalized. It got my graph made, and I
haven't needed a graph like this one again, so I never went back to really
clean it up.
It works by first plotting both sets of rectangles, then going back over the
ones that had the first bar totally covered by the second.
Hope this helps,
2008 Jun 16
4
Superimposing Line over Histogram in Density Plot
Hi,
Currently I have a density plot generated with this
snippet.
Is there a way I can add a line curve on top of it?
I mean in one figure
__BEGIN__
myhist <- hist(x
col="blue",
main = "Density Plot",
xlab = "Exp Level",
)
__END__
- Gundala Viswanath
Jakarta - Indonesia
2011 Sep 12
1
Superimposing titles on dotcharts
I've created a chart with times that employees have entered data on named tasks as in the following example:
Employee <- c(rep("Tom", 127),?
rep("Dick", 121),?
rep("Sally", 130)
)
Time <- c(seq(as.POSIXct("2011-09-12 07:00:00"), as.POSIXct("2011-09-12 14:00:00"), 200),
seq(as.POSIXct("2011-09-12 07:00:00"),
2003 Apr 18
3
superimposing graphs
Dear People,
I have a data set of data x from a probability distribution, and I have a
function, mydensity, of the pdf of that distribution.
I'm asking for help in superimposing the histogram of x and the plot of
mydensity.
In the function below, I call truehist and curve, but these are plotted in
different figures.
I'd like them to be plotted on the same figure, and to use common
2007 Sep 20
2
Superimposing vector polygons over raster grid in a plot
Hello:
I would like to superimpose vector polygons (state outlines) from a
Shape file on top of a satellite image,
imported into a SpatialGridDataFrame from GEOTIFF via gdal_translate and
readGDAL.
When I plot polygon and point shape files in R, into
SpatialPointDataFrame and SpatialPolygonDataFrame,
the two feature sets line up geographically, so it seems logical that a
SpatialGridDataFrame
2011 Jul 04
1
superimposing different plot types in lattice panel.superpose
I would like to plot 3 best-fit models in a single panel of a lattice plot,
superimposed on 3 corresponding datasets in the same panel. My goal is to
show the models as lines of 3 different colors, and the data as points whose
colors correspond to the model colors. In essence, I have two levels of
grouping: 1) model vs. data, and 2) model number. Since there is only one
?groups? variable, I
2010 Aug 13
1
Lattice: Superimposing histograms with different colors and transparency effects
Dear users,
I would like to plot several histograms superimposed on the same panel
with different colors, with superimposed polygons appearing with
transparency effects. I also want estimated densities to appear on the
same plot. For several reasons, including that I like it, I want to use
the lattice package.
I have several questions regarding the use of the 'histogram' function
with a
2006 Jun 28
2
superimposing histograms con't
Earlier, I posted the following question:
I want to superimpose histograms from three populations onto the same graph,
changing the shading of the bars for each population. After consulting the
help files and the archives I cannot find out how to do this (seemly)
simple graph. To be clear, I want
- a single x axis (from -3 to 18)
- three groups of bars forming the histograms of each population
2008 Jul 05
3
trying to superimpose a line plot onto a histogram
Hello,
I'm trying to superimpose a line plot onto a histogram but I'm not having
any luck. I've attached the dataset. What I did was:
> hist(data,freq=F)
Now I'm trying to superimpose the following points with a line connecting
them onto the histogram:
x y
100 0.535665393824959
200 0.212744329736556
300 0.0844933242968584
400 0.0335572838043417
500
2010 Jan 02
1
xyplot: several plots in one creates y-scale problem
Hello,
I've been looking for a solution to this problem for some time now but
I seem unable to solve it.. so this is the case: I want to plot 4 time
series in the same graph using xyplot(). When I do this with
xyplot(mydata[,2]+mydata[,3]+mydata[,4]+mydata[,5] ~ mydata[,1], data
= mydata,
type = "l",
auto.key = list(space="right", lines = T, points = F),
2006 Jan 31
2
Multiple xyplots on the same page
Hi,
I am using the "xyplot" function in the "lattice" package to generate
multiple plots, but I would like to have them plotted on the same page. I
would like to set something equivalent to the command: par(mfrow=c(2,2)),
in order that I can plot 4 xyplots on the same page. How can I do this in
"xyplot"?
I am using R version 2.1.1 on Windows.
Thanks very
2008 Jun 26
0
plot multiple xYplots
Dear All,
I'm having trouble ploting multiple xYplots (Hmisc) within the same pg
although I've done it before w/ xyplots. I've produced 4 similar plots
e.g.
rna.h<-xYplot(Cbind(RNA,Lo,Up)~HO|factor(MO,labels=c("April",
"May","June")),data=diel.data,method="bars",type="b",
keys="lines",pch=16,col=1,cap=.04,
2008 Jun 26
0
multiple xYplots
Dear All,
I'm having trouble ploting multiple xYplots (Hmisc) within the same pg
although I've done
it before w/ xyplots. I've produced 4 similar plots e.g.
rna.h<-xYplot(Cbind(RNA,Lo,Up)~HO|factor(MO,labels=c("April",
"May","June")),data=diel.data,method="bars",type="b",