Displaying 20 results from an estimated 9000 matches similar to: "compare histograms"
2012 Mar 24
2
Compare similarit of two vector of not same length
Dear all,
this is not strictly R question. I have two vectors of different length (this is in the order of 10%). I am trying to see if still one can compare these two for similarity.
IF the vectors were of the same length I would just take the difference of the two and plot a pdf of it.
One way I am thinking is prorbably to find the longer length and short it in some way to get to the length of
2008 Dec 05
3
How to calculate the distance between two density functions
Dear all,
I wrote the following code to calculate the density functions for two data
sets, respectively.
den_str <-density(str_data$Similarity);
den_non_str <-density(nonstr_data$Similarity);
However, I would like to knowing the difference between den_str and
den_non_str, that is, the difference between the region under the curve of
the den_str and the region under the curve of
2008 Nov 16
1
Need help in calling C code from R
Hi
I would like to implement the "Earth Movers Distance" into R and found
the code in C on the following page:
http://www.cs.duke.edu/~tomasi/software/emd.htm
Unfortunately, I don't know much (nearly nothing) about C and how to
call it from R.
As far as I have seen, the calling of the code from R should be rather
straight forward, but there are still several things I don't
2011 Mar 25
1
multiple plots with QQplot of PerformanceAnalytics
Hi All,
I am trying to plot 4 graphs on to 1 page using layout(...), or par(mfcol =
c(...)); with the function QQplot from the package PerformanceAnalytics.
The problem is that, no matter what order I use, it only plots 3 graphs on to 1
page and the last QQplot is shunted to the next page.
Also, this only happens to the QQplot, i.e. there is no problem with 4
Histograms.
set.seed(1033)
data
2009 Feb 12
3
Website, book, paper, etc. that shows example plots of distributions?
By any chance is any one aware of a website, book, paper, etc. or combinations of those sources that show plots of different distributions?
After reading a pretty good whitepaper I became aware of the benefit of I the benefit of doing Q-Q plots and histograms to help assess a distribution. The whitepaper is called:
"Univariate Analysis and Normality Test Using SAS, Stata, and SPSS*" ,
2012 Jul 06
1
How to compare stacked histograms/datasets
Hello All,
I have a couple of stacked histograms which I need to compare/evaluate for
similarity or difference.
http://r.789695.n4.nabble.com/file/n4635668/Selection_011.png
I believe rather than evaluating histograms is will be east to work with
dataset used to plot these stacked histograms, which is in format:
RED PURPLE BLUE
GREY
2008 Nov 19
1
C++ code from R
Hi
I managed to compile (and use) C code from R, but now I have to use C++ code.
After reading "Writing R extensions", I came up with the following
code, which compiles fine
-------------------
// emdL1_R.cc:
#include <time.h>
#include <stdio.h>
#include "emdL1.h"
extern "C"
{
void emd_L1(
double *H1, int *n1,
double *H2, int *n2,
2010 Jun 24
4
Simple qqplot question
I am a beginner in R, so please don't step on me if this is too
simple. I have two data sets datax and datay for which I created a
qqplot
qqplot(datax,datay)
but now I want a line that indicates the perfect match so that I can
see how much the plot diverts from the ideal. This ideal however is
not normal, so I think qqnorm and qqline cannot be applied.
Perhaps you can help?
Ralf
2004 Jun 08
3
Comparing two pairs of non-normal datasets in R?
Hi all,
I'm using R to analyze some research and I'm not sure which test would be
appropriate for my data. I was hoping someone here might be able to help.
Short version:
Evaluate null hypothesis that change A1->A2 is similar to change C1->C2, for
continuous, non-normal datasets.
Long version:
I have two populations A and C. I take a measurement on samples of these
2010 May 13
1
Comparing histograms?
Rhelpers:
I'm curious what the appropriate analysis to use for testing the
hypothesis that two histograms are statistically different from one
another? Thanks!
--j
2010 Aug 04
4
KS Test question (2)
Hi R Users,
I have two vectors, x and y, of equal length representing two types of
data from two studies. I would like to test if they are similar enough
to use them interchangeably. No assumptions about distributions can be
made (initial tests clearly show that they are not normal).
Here some result:
Two-sample Kolmogorov-Smirnov test
data: x and y
D = 0.1091, p-value < 2.2e-16
alternative
2009 Dec 12
3
help with graphing -- Points in my graph are not apparent, always displayed in steps
I am trying to graphically represent a large set of data who's result is not
strictly uniform. http://n4.nabble.com/file/n961629/egraph_rules_list_2.png
The scatter plot to the left has all of the data rising in steps however I
know that there are cases within my data that do not fit the dotted line.
temp<-edat[edat$R1SC>0,,]
2010 Jun 23
4
Comparing distributions
I am trying to do something in R and would appreciate a push into the
right direction. I hope some of you experts can help.
I have two distributions obtrained from 10000 datapoints each (about
10000 datapoints each, non-normal with multi-model shape (when
eye-balling densities) but other then that I know little about its
distribution). When plotting the two distributions together I can see
that
2005 Jun 27
1
ks.test() output interpretation
I'm using ks.test() to compare two different
measurement methods. I don't really know how to
interpret the output in the absence of critical value
table of the D statistic. I guess I could use the
p-value when available. But I also get the message
"cannot compute correct p-values with ties ..." does
it mean I can't use ks.test() for these data or I can
still use the D
2007 Apr 16
2
Histograms of lots of variables
Hi R-helpers,
I wish to produce frequency histograms of all of the variables in my
dataframe (except some identifying variables).
I have tried
>hist(dataframe[,3:20])
to produce histograms of the 3rd through 20th variables in my dataframe, but
R doesn't like that.
Could anyone provide a suggestion?
Also, once I produce the histograms, I'd like to save them as graphic files
on my
2005 Feb 02
4
Combining two histograms
I have data like:
a <- rnorm(20000)
b <- rep(FALSE,20000)
b[sample(1:20000,15000)] <- TRUE
Using Lattice graphics, I can produce two side-by-side histograms quite
easily by:
histogram(a | b)
However, I would like to produce a "single" histogram with two bars
within each bin, one for each group, as the groups are in reality very
slightly different from each other. The
2010 Jul 09
3
how to plot two histograms overlapped in the same plane coordinate
Dear R-help listers,
I am new. I just want to get helps on how to plot two histograms
overlapped in the same plane coordinate. What I did is very ugly.
Could you please help me to improve it? I want to got a plot with semi-
transparent overlapping region. And, I want to know how to specify the
filled colors of the different histograms.
I also prefer other solutions other than ggplot2.
Many
2011 Mar 03
2
Ordering several histograms
Hallo everyone,
I want to evaluate the change of the distribution for several size classes.
How can i order these separate histograms with the same y-axis along a
common x-axis according to their size classes. It would like it to look a
bit like this
(http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=109) without
the quantile regression. I can produce the separate histograms, but have
2011 Apr 29
4
plot several histograms with same y-axes scaling using hist()
Dear all
Problem: hist()-function, scale = ?percent?
I want to generate histograms for changing underlying data. In order to make
them comparable, I want to fix the y-axis (vertical-axis) to, e.g., 0%, 10%,
20%, 30% as well as to fix the spaces, too. So the y-axis in each histogram
should be identical. Currently, I have 100 histograms and the y-axis scales
changes in each.
Here is my code:
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.