Re: [R] ggplot2 barplot: extra markers in graph

2010-08-04 Thread Dieter Vanderelst
Thanks, this indeed solved the problem. Regards, Dieter On 4/08/2010 15:21, Shentu wrote: > > The reason you see the exra markers is that the first part of the command > "qplot(DT$N,DT$D,fill=factor(DT$C))" already plots the individual points. > You didn't see it with "geom_bar(stat = "identity"

[R] ggplot2 barplot: extra markers in graph

2010-08-04 Thread Dieter Vanderelst
Dear List, (self-contained example + version info at the bottom) I'm having trouble producing a barplot using the functions in ggplot2. When I use the position="dodge" option, the bars are plotted but also a number of spurious markers. More specifically, a number of black dots are plotted in t

[R] comparing mixture models (mix function in mixdist package)

2009-04-22 Thread Dieter Vanderelst
that differ in the number of distributions fitted and/or the shape of the distributions. Is there a way, using likelihoods maybe, to compare this kinds of fits in a statistical meaningfull way? Regards, Dieter Vanderelst __ R-help@r-project.org

Re: [R] Kruskal's MDS results

2009-04-17 Thread Dieter Vanderelst
Thank you for clearing this out. Jari Oksanen wrote: Dieter Vanderelst ua.ac.be> writes: The point is that the manual for the isoMDS function says it's stress output is in "percent". Does this mean, the stress reported by isoMDS is just the stress value in MASS (which r

Re: [R] Kruskal's MDS results

2009-04-17 Thread Dieter Vanderelst
A few people suggested taking a look at Ripley's book MASS. I know the formula listed there. The point is that the manual for the isoMDS function says it's stress output is in "percent". Does this mean, the stress reported by isoMDS is just the stress value in MASS (which ranges from 0 to 1) v

Re: [R] Kruskal's MDS results

2009-04-15 Thread Dieter Vanderelst
lts of the Kruskal's Non-metric Multidimensional Scaling algorithm (isoMDS, MASS package). The 'goodness of fit' is reported as "The final stress achieved (in percent)". What does this mean exactly? I've tried to google for an answer but I've not come up

[R] Kruskal's MDS results

2009-04-15 Thread Dieter Vanderelst
o google for an answer but I've not come up with a definitive answer. Regards, Dieter -- Dieter Vanderelst PhD Student Active Perception Lab University of Antwerp http://batbits.webnode.com/ Postal Address: Prinsstraat 13 B-2000 Antwerp Belgium __

[R] interp() function output not continue

2008-06-17 Thread Dieter Vanderelst
Dear List, I'm using interp() to prepare 3d data for plotting with the contour() function. If have x,y and z data. All are arrays. X and Y are sampled in an orderly fashion on a grid (a circular sub-area of a grid - see plot). I'm trying to use interp() to get x and y arrays and a z matrix tha

[R] re-arranging unsorted data for surface/contour plot

2008-06-16 Thread Dieter Vanderelst
Hi list, I'm struggling with plotting a 3d data set. I have a data frame with x,y and z values. They occur in no particular order (ie x and y are not ordered). However, I want to visualize the data using a contour plot. Now, the x,y and z data going into contour() are supposed to be ordered.

[R] spherical plots?

2008-06-05 Thread Dieter Vanderelst
ourse). If my explanation is not clear, you can find an example of what I'm after here: http://www.mediafire.com/?in0fmnikzmg (created using matlab). Regards, Dieter Vanderelst -- Dieter Vanderelst PhD Student Active Perception Lab University of Antwerp Koningstraat 8 B-2000 Antwe

Re: [R] lineplot.CI problem

2008-02-18 Thread Dieter Vanderelst
x.cont=TRUE) > > ## Factorial spacing > lineplot.CI(resp=y, x.factor=time, group=factors) > > Manuel > > On Fri, 2008-02-15 at 15:18 +0100, Dieter Vanderelst wrote: >> Hi List, >> >> I have a problem plotting data using the lineplot.CI command in the scipl

[R] lineplot.CI problem

2008-02-15 Thread Dieter Vanderelst
Dieter Vanderelst dieter dot vanderelst at emailengine dot org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] rearrange data: one line per subject, one column per condition

2007-11-27 Thread Dieter Vanderelst
on my data in SPSS, so I need the rearranged format. Regards and Thanks, Dieter -- Dieter Vanderelst dieter _ vanderelst AT emailengine DOT org d DOT vanderelst AT tue DOT nl Eindhoven University of Technology Faculty of Industrial Design Designed Intelli

[R] ylim in barplot2 function?

2007-10-31 Thread Dieter Vanderelst
) Does anybody know of a solution? Regards, Dieter -------------- Dieter Vanderelst dieter _ vanderelst AT emailengine DOT org d DOT vanderelst AT tue DOT nl Eindhoven University of Technology Faculty of Industrial Design Designed Intelligence Group Den Dolech 2 5612 AZ Ei

Re: [R] Cluster Analysis

2007-10-29 Thread Dieter Vanderelst
take a look at hclust() Dieter Katia Freire wrote: > Dear all, > > I would like to know if I can do a hierarchical cluster analysis in R using > my own similarity matrix and how. Thanks. Katia Freire. > > > [[alternative HTML version deleted]] > > _

[R] adding aggregate data to data frames

2007-10-19 Thread Dieter Vanderelst
mails, is very hard. So, if any one knows a set of better keywords... Any ideas? Thanks, Dieter Vanderelst -- Dieter Vanderelst dieter _ vanderelst AT emailengine DOT org d DOT vanderelst AT tue DOT nl Eindhoven University of Technology Faculty of

Re: [R] cumulative frequency plots for factors

2007-10-16 Thread Dieter Vanderelst
Hi, Henrique's solution is indeed very elegant. But after a while, I thought I needed more control over individual lines. Therefore, I switched to the more complex method you also suggest. I want to thank the both of you for the help. Regards, Dieter Jim Lemon wrote: > Dieter Va

[R] cumulative frequency plots for factors

2007-10-15 Thread Dieter Vanderelst
Dear list, I have a data frame with a number of events (factor) and the times at which they occurred (continuous variable): event time A 10 A 12 B 15 A 17 C 13 ... Is it possible in R to make a plot against time of the cumulative frequency of occurrence of each event? This would be, a raising

Re: [R] Making a table: collapsing across sub-strings

2007-10-04 Thread Dieter Vanderelst
gt; You can use grep/regexpr to determine if one string is a subset of > another. > > On 10/3/07, Dieter Vanderelst <[EMAIL PROTECTED]> wrote: >> Hi list, >> >> I'm currently processing textual data and I would really appreciate some >> help with one off my

[R] Making a table: collapsing across sub-strings

2007-10-03 Thread Dieter Vanderelst
has a pointer to a way to do this? I have been checking out the CRAN packages for handling DNA sequences, but this has not really brought me closer to a solution. Thanks, Dieter Vanderelst ---------- Dieter Vanderelst Eindhoven University of Technology Faculty o