Displaying 20 results from an estimated 2000 matches similar to: "Add lines to density plot"
2005 Apr 18
5
the graph gallery strikes back
Hello useRs and helpRs,
Some time ago, in a gallaxy far away (here is the thread :
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/46532.html ) we
discussed about a graph gallery showing the power of R in that domain. I
did some work around that, and there is a (pretty advanced) draft here :
http://addictedtor.free.fr/graphiques/displayGallery.php
For instance, there are some of my graphs,
2005 Aug 02
3
how to print a data.frame without row.names
Dear All,
is there a simple way to print a data.frame without its row.names?
example:
datum <- as.Date(c("2004-01-01", "2004-01-06", "2004-04-12"))
content <- c('Neujahr', 'Hl 3 K.', 'Ostern')
df1 <- data.frame(datum, content)
print(df1)
datum content
1 2004-01-01 Neujahr
2 2004-01-06 Hl 3 K.
3 2004-04-12 Ostern
Can I get
2006 Aug 25
4
How to iteratively extract elements out of a list
Dear List,
The following code produces a list, which is what I what:
set.seed(123)
tmpf <- function() {
x <- rpois(rpois(1,4),2)
}
n <- 3
m <- replicate(n,tmpf())
m
[[1]]
[1] 3 2 4
[[2]]
[1] 0 2 4 2 2 5 2
[[3]]
[1] 2 0 4 1 0
Now I need something that would to extract iteratively (or as many
times as
the size of 'n') the values that are greater than 2 in each component
of
2006 Jun 01
4
A coding question
Dear List:
I have the follow code:
y <- replicate(10,replicate(8,sum(rnorm(rpois(1,5)))))
Now I need to apply the following condition to _every_ randomly generated
Normal number in the code above:
x - max(0,x-15) + max(0,x-90), where x represents the individual Normal
numbers.
In other words, the said condition needs to be applied before
replicate(...(replicate(...(sum(...))) takes place.
2005 Oct 19
6
forrest plot
Hi,
can you tel me how can I make a Forrest Plot with R?
It is possible and easy or are there a more practical free software available?
Than you
Mic
[[alternative HTML version deleted]]
2005 Jun 13
3
assignment of inidividual variables from spss save files
New to R, can't afford SPSS!
Why can't I assign spss variables? Here are the details.
> ### I've read in my collaborator's sav file using read.spss, eg
> children = read.spss(filename)
> ### It has many variables
> length(children)
[1] 347
> ### and I would like to assign individual variables.
> ### I can of course type out all the ones I want, eg
>
2005 Apr 23
3
How to know in which package is a function
Hello list,
I'd like to know if there is a function that tells in which package is a
given function.
Something like :
which.package("lda")
[1] "MASS"
Thank you.
Romain
--
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
~~~~~~ Romain FRANCOIS - http://addictedtor.free.fr ~~~~~~
~~~~ Etudiant ISUP - CS3 - Industrie et
2006 Mar 17
3
Open .ssc .S ... files in R (PR#8690)
----- Quick summary:
In the File:Open dialog, please change
"S files (*.q)"
to
"S files (*.q, *.ssc, *.S)"
and show the corresponding files (including .SSC and .s files).
----- Background
This is motivated by the following query to R-help:
>Date: Thu, 16 Mar 2006 22:44:11 -0600
>From: "xpRt.wannabe" <xprt.wannabe at gmail.com>
>Subject: [R] Is
2006 Mar 17
2
Is there a way to view S-PLUS script files in R
Dear List,
I have some S-PLUS script files (.ssc). Does there exist an R
function/command that can read such files? I simply want to view the
code and practice in R to help me learn the subject matter.
Any help would be greatly appreciated.
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 2.1
year 2005
month 12
day 20
svn
2005 May 19
2
ARIMA estimation
Good morning,
(sorry for my english)
i have some problems to put off by extimation ARIMA coefficients
the ones not significatives.
Exist a method to extimate only that significatives?
i use the command: arima().
thanks to all
Stefano
[[alternative HTML version deleted]]
2005 Aug 05
1
use of color for hclust
Hi,
I have a grouping of some observations. I want to cluster them using
hierarchical clustering and compare how the hierarchical clustering shows up
vis-a-vis the groupings. Is it possible to do this in color? I guess what I am
looking for is a way to color the labels of a hierarchical clustering plot
using different colors according to the original grouping. Any suggestions?
Many thanks and
2005 Sep 15
2
about cutree
Hi Everyone,
I'm trying to use cutree to get the clusters after hclust. What I used is: mycluster<-cutree(cnclust,h=0.5)
Now, my problem is, how can I get the actual clusters? Thanks!
Best,
Baoqiang Cao
2005 May 20
2
Plot Problem
Hi folks,
I try to plot a variable which contains string-variables. it works, but the
problem is that there are a lot of values at the x axis (up to 24)
SO i have to scale or rotate the label at the x axis.
I tried this with the text() function. It doesn't work correctly.
Is there a simple way to rotate the labels?
Best regards,
Sebastian
2005 May 25
3
DOING CLUSTERING WITH THE EM ALGORITHM
Hello,
I am looking for documentation (PDF ?) about doing clustering with the EM Algorithm on R... I'm sorry for this question which may be trivial...
Thanks...
Dominique
2005 Jun 08
2
matrix
hi,
is it possible to create a matrix with one row and according to add a row?
in fact, at present, I'm doing an algorithm which fill a matrix.
On the web site of CRAN, the package basic is impossible to be load!
can you tell me where i can found it!
Thanks
Sabine
---------------------------------
[[alternative HTML version deleted]]
2005 Jun 09
1
color on barplot
Hello,
On my barplot, I have on the axis y, the names of the rows of my matrix r_mat!
is it possible to change the color of these names on my barplot?
barplot2(t(r_mat),beside=TRUE,horiz=TRUE,plot.grid=TRUE,xlab="R",font.lab=4,las=2,xlim=c(0,1))
thanks,
Sabine
---------------------------------
[[alternative HTML version deleted]]
2005 Jun 15
1
Graph with values of coordinates of points in x axis
Hi all,
I want to draw a line with the values of x marked in X axis.
I tried with
x <- c(0,6,12,18,24,30) #coordinates of points x
y <- c(2,5,7,5,7,16) #coordinates of points y
plot(x,type="n",xlab="Months",ylab="Y
values",main="main",ylim=c(0,16),xlim=c(0,30))
lines(x,y)
The graph shows by default an increment of the sequence in x axis that
2005 Aug 02
1
(no subject)
hi all,
I wish to draw on the same graphic device 3 functions.
But i don't want them to be on different graph, i want to compare them on the same
I don't need mfrow or mfcol, I need something else...
1 graph on 1 device inside this graph 3 ploted function.
I saw something unsing data.frame, but i think it's overkill, and something less complicated must exist, if not why?
why not
2005 Aug 03
2
R: histograms and ylim
hi all
a very simple question once again!!!
can we change the "y" range in a histogram?
e.g.
x=rnorm(1000)
hist(x,ylim=0.5,prob=T) #this does not work
any suggestions???
2005 Aug 18
2
how to draw an ellipse
That's probably a stupid question, but I'm looking for a low-level
command which plots ellipse, specifying only center and deformation
axes. The purpose is to illustrate bivariates gaussians with 2D .95
confident levels without using any specific library.
Thanxs for your help,
Guillaume