search for: superimposed

Displaying 20 results from an estimated 260 matches for "superimposed".

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
2008 Apr 01
1
superimpose histogram on biplot
Hi all, I've been trying to figure out how to superimpose a histogram on a biplot that shows the relative contribution of each axis. I have been using the NIPALS function (http://biomserv.univ-lyon1.fr/~dray/ files/softwares/nipals.R) to run principal component analyses. Here is a toy example. source("http://biomserv.univ-lyon1.fr/~dray/files/softwares/nipals.R")
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
2007 Apr 11
8
graphs superimposed on pictures?
Hi: I am doing some work that involves plotting points of interest superimposed on photographs and maps. I can produce the plots fine in R, but so far I have had to do the superimposition externally, which makes it tedious to do exploratory work. I have looked to see if there is some capability to put a background picture on a plot window, but I have not found anything. Advice...
2011 Apr 16
2
superimpose graphs
...ation between invest and payout. 1. How do I run the regression for each person, with the "invest" being devided by the mean or medium of the person's "invest"? 2. How do I plot a graph with y axis being invest/mean(invest) and x axis being payout, all 600 people's dots superimposed on one graph? I tried to use for (i in 1:(dim (DF)[1]-1)) { if (DF[i,1]=DF[i+1,1]) id.lm <- lm(invest ~ payput, data=DF) } But I don't know how to superimpose graphs onto each other. Thanks a lot! Su [[alternative HTML version deleted]]
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 variables: $ Subject: Ord.factor w/ 6 levels "1"<"4"<"2"<"5"...
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,
2010 Nov 30
2
xyplot : superimposed 2 groups in different panels
Hello, I would like to plot the following xyplot : for each date of fff (1 date per panel), bbb=f(aaa) for the two groups (ddd=1 and ddd=2) superimposed. I can do it by group (see below) but not together. I looked at http://lmdvr.r-forge.r-project.org/figures/figures.html but I haven't found what I was looking for (to be honest, I haven't understood all the examples). Any help will be welcome. Thanks in advance, Ptit Bleu. # aaa : x-axi...
2005 Dec 13
8
superimpose density line over hist
Hi all, I'm trying to superimpose a rchisq density line over a histogram with something like: hist(alnlength) lines(density(rchisq(length(alnlength), 4)),col="red") But the rchisq line won't appear anywhere, Anyone knows what I am missing here? Thanks in advance, Albert.
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
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
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? var...
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 &...
2010 Sep 15
2
how to superimpose 2 matrices of different sizes
Hi All, I?m trying to superimpose (or "add") two matrices: 1. resulting from a table function with frequencies: > U=table(pop$xloc, pop$yloc)) 14 15 16 17 18 19 20 21 22 5 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 9 0 5 10 0 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 0 2.
1999 Jun 07
0
How to superimpose a histogram and density plot
NCSS has a nice plot of the histogram and density plot superimposed. The S-PLUS 4 Guide to Statistics on page 45 suggests the following code for a general purpose density plot for a vector named data iqd <- summary(data)[5]-summary(data)[2] plot(density(data,width=2*iqd),xlab="x",ylab="",type="l") Is it possible to superimpose the...
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]]
2005 Nov 29
1
Superimpose Histograms
Hi all, I have data which is represented as a histogram and want to add more data / another histogram to this plot using another color. That is I need to superimpose multiple histograms. But have no idea how to do this. Can anybody please give me a hint? Thanks, Andreas -- Andreas Wilm Institut fuer Physikalische Biologie Heinrich-Heine-Universitaet Duesseldorf
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
2009 Jul 02
1
superimpose multiple scatterplot matrices
Dear R- experts, I am trying to superimpose two or more scatterplot matrices generated by pairs() to visualize the differences over each datasets, but have not been very successful. Two data frames, df1 and df2 for example, each has the same five variables in columns. My goal is to paint each dataset with a color on the same plot panel for each pair of the five variables. That is, in this
2010 Jan 21
1
superimpose histogram and fitted gamma pdf
Hi r-users,   I try to draw histogram (in terms of probabilty) and superimpose with the gamma pdf. Using this code below I can get the plots BUT the y scale for the density is out of scale.  How do I change the y-axis scale to max 1?  Another thing, how I do draw smooth line rather that points?   Nota that my observed data is hume_pos and the fitted data is rgam1.   hist(hume_pos,prob=TRUE)