Displaying 20 results from an estimated 1000 matches similar to: "plot color question"
2005 Jan 14
2
Help in Overlaying of 2 Plots on the same Device.
I'm trying to overlay a density plot on a previously plotted histogram. However, i need to use the same axis as of the 1st(histogram) plot to plot the second. My second plot is creating its own axis and causing my plot to extend the entire histogram instead of getting a subplot on a portion of the histogram. I tried 'fig' and 'new' parameters with no luck.
Thanks in advance.
2005 Feb 18
3
Hosting a R Graph Gallery?
Dear R users,
Following some of the recent questions and discussions about the R
plotting abilities, it occurred to me again that it would be very
valuable to have an R graph gallery.
Eric Lecoutre made a very nice example in:
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/stats/fichiers/_gallery.pdf
It would be very useful to many beginners, but probably also advanced
users of R, to have an
2004 Dec 15
3
adding perspectives to existing persp plots
I've created a perspective plot using 'persp' in the graphics package.
I'd like to add a second plane of z values to the existing plot, but I
cannot seem to do this using 'persp'. Is there an analogue to 'lines' or
'points' for perspectives?
Corey.
corey.bradshaw at cdu.edu.au
2004 Dec 08
2
Clustering in R
Is there a command to get cluster criterion for the cluster methods? SAS has its criterion, but I prefer to do it in R. If there is not a command is there code to produce criteria to choose the number of clusters?
Adrian Katschke
Statistics Grad Student
University of Nebraska-Lincoln
[[alternative HTML version deleted]]
2005 Jan 09
2
plot.default and open ended limits
Hi, I would like to bound the lower limit of my y scale to zero, and let R
chose an upper limit.
Something like
plot(x,ylim=c(0,))
or
plot(x,ylim=c(0,na))
but nither of these do the job. I searched the docs, but I can't see a way
to do this.
Naturally its nothing I can't do 'by hand', I would just like to know if a
correct syntax exists.
2005 Jan 14
2
contour and filled contour plots
Hello,
I'd like to remove color bar from "filled.contour"
plot.
Is it possible and how?
I also want to overlay "contour" plot on
filled.contour
but due to scaling of the "filled.contour" to
account for the color bar, aspect ratio for "contour"
is different from "filled.contour". Can this problem
be solved?
Thanks,
Mark
2005 Feb 05
1
plot smooth density estimates for bivariate data
Hi, there.
Suppose I have a bivarariate data matrix y1 and y2. I want to plot a 3-D
picture of the estimated density f(y1, y2) against y1 and y2? How can I do
that? Do I use persp() or density()?
Thanks for your help.
Yulei
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Yulei He
1586 Murfin Ave. Apt 37
Ann Arbor, MI 48105-3135
yuleih at umich.edu
734-647-0305(H)
734-763-0421(O)
734-763-0427(O)
2005 Feb 18
2
Partial structural Change in STRUCCHANGE PACKAGE
Hi,
I am using the Strucchange package in R to test for structural change in regression coeffcient. Given a model y = b0 + b1*X + b2*Z, the Fstats test whether there is a change in both b1 and b2 over a time period.
Is there any way where I can restrict the test to hold b2 constant and test for break in only b1? That is, instead of a pure structural change, could I test for partial structural
2005 Mar 03
2
Putting different colors on labels in plot (hclust)
Hi All R-helpers
This is my first (but probartly not last ;-) mail to R-help, so hello to everybody.
My problem: Is there a way to give colors to the labels (sample labels) in plots for a hclust object for better visualization?
I have looked through plot, points, hclust and more but cannot find anything on label color. Anybody know if this is doable?
Best regards Jeppe
2004 Dec 23
3
combination of scatterplot and image graph
Dear R users,
I'm interested in a combination of a scatterplot and an image graph.
I have two large vectors. Because in the scatterplot some areas are
sparsely and others densely populated, I want to see the points, and
I also want their color to be changed based on their density (similar
to a heat map). Is there a function that can do that?
Thank you,
b.
2004 Dec 27
2
list(0) to integer
Hello
I've another question :-)
I would like to transform a list to a integer.
I must be sure that the number entered by the user is
an integer! Thus, I've made :
repeat{
cat("Effectif des populations (integer):")
n<-scan("",n=1,what=list(0),quiet=TRUE)
if (is.integer(n[[1]])==TRUE) break
print("L'effectif des population doit etre un
entier")
2005 Jan 14
5
subsampling
hi,
I would like to subsample the array c(1:200) at random into ten subsamples
v1,v2,...,v10.
I tried with to go progressively like this:
> x<-c(1:200)
> v1<-sample(x,20)
> y<-x[-v1]
> v2<-sample(y,20)
and then I want to do:
>x<-y[-v2]
Error: subscript out of bounds.
2005 Feb 03
5
How to convert a list to a matrix
Hi
Sorry to ask such a basic question. I have a list, each element of
which is a vector of two values. What I actually want is a matrix with
two columns, and one row per element of the list. Obviously I have
tried as.matrix(), and as.vector() but I didn't expect the latter to
work.
I feel so lame asking this. Any suggestions?
Mick
2005 Feb 08
2
Fw: Contour plot
I understand that I need to have a (in this case) square matrix with all the
data. But the question now is;
- can the contourplot not interpolate the missing values
or alternatively
- I have fit a model to the z data (z = 100 + 0.5x + 0.5y). How can I make
from this model a "square" matrix z to make a contour plot?
Kind regards, Darius Blaszijk
----- Original Message -----
From:
2005 Apr 01
7
a R function for sort a data frame.
Is there a R function for sort a data frame by a variable ?
I know sort a vector, but I don't know sort a data frame by a
column. Can you help me ?
the sort() function don't work with data frame.
2005 Feb 18
4
R & bash script
Hi
how is it possible to use more than one command when i'm
didn't want use R CMD BATCH for specific reason?
$ echo "(x<-1:10)" | R --vanilla
works
$ echo "(x<-1:10 ;y<-20:30 ;lm(y ~ x))" | R --vanilla
works not.
Is it further possible using bash variables like $i from a loop
in the bash echo call i.e. dm$x$i$k <-
2005 Feb 07
5
Creating a correlation Matrix
Hi all:
I have a question on how to go about creating a correlation matrix. I have
a huge amount of data....21 variables for 3471 times. I want to see how
each of the variables correlate to each other. Any help would be
appreciated, including which package and which functions I should use to do
this.
Thanks,
Jessica Higgs
Masters Student
Department of Meteorology
Penn State University
2005 Jan 09
3
R-etiquette
I'm about to present a report (for internal use of governmental agency). I used extensively R , contibuted packages, as well as communications on the R-list
As well as citing R, I would like to know how to cite the contributed packages (it is not so easy, as some have been used exensively, other marginally, some are called from another package and some were not used as softwares but gave me
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