Displaying 20 results from an estimated 200 matches similar to: "ploting dots with quentiles"
2012 Jul 12
6
read.table with numeric row names
I have a text file like this
2.5 3.6 7.1 7.9
100 3 4 2 3
200 3.1 4 3 3
300 2.2 3.3 2 4
I used "r <- read.table("a.txt", header=T)"
The row names becomes X2.5, X3.6... What I need is the row names are
numeric, so I can use the row names as numbers on x-axis for plotting. e.g.
"plot(colMeans(r)~names(r))",
2007 Dec 07
1
how to generate uniformly distributed random integers
I'm a beginner of R.
I can use runif() to generate uniformly distributed numbers, but I don't
know which function can generate uniformly distributed random integers, or
what kind of method do?
Thanks!
--
View this message in context: http://www.nabble.com/how-to-generate-uniformly-distributed-random-integers-tf4960778.html#a14208376
Sent from the R help mailing list archive at
2005 Mar 11
1
Ploting a function of two arguments
Hi,
I've written a function:
myfun <- function(x, y) {
// blah blah
}
and I want to graph it. My plan is to use persp(), and my question is:
how do I create the array of values? One possibility is:
x <- seq(0, 10, by=.1)
y <- seq(0, 10, by=.1)
inputs <- <somehow create an array of x,y pairs>
outputs <- apply(A, c(1,2), myfun)
The "inputs" array would
2007 Oct 15
1
Need help ploting time series
Hi:
I been having a lot of trouble trying to plot multiple time series on the
same plot. What I want to do is the following:
I have a table with sales per day on different states and what i would like
to do is plot time series for all the diferents states in the same plot
(divided in small squares, not all the time series together) so I can
visualize the data; but I do not know how to do this, im
2007 Jul 27
0
heatmap and phylogram / dendogram ploting problem
Hi,
I have trouble with the heatmap function (package stats). The row labels
are wrongly ordered and don't correspond to the Rowv dendrogram. I know
there is a bug with the heatmap fonction. Emmanuel Paradis
(http://tolstoy.newcastle.edu.au/R/e2/help/07/05/16227.html )suggested a
modification to fix it but in my case the row labels are still wrongly
ordered.
Heatmaps with 2 phylograms have
2012 Jan 06
1
Please help!! How do I set graphical parameters for ploting ctree()
I'm trying to understand how to set graphical parameters for trees created with the party package. For example take the following code:
library(party)
data(airquality)
airq <- subset(airquality, !is.na(Ozone))
airct <- ctree(Ozone ~ ., data = airq,
controls = ctree_control(maxsurrogate = 3))
plot(airct)
My problem is, I've got a ctree that has
2008 Dec 18
1
Ploting 3D cylinder in RGL
Dear all,
I would like to draw a 3-D horizontal cylinder preferably in RGL device
(because this gives the look from different angles). Basic idea is from
http://www.tau.ac.il/cc/pages/docs/sas8/insight/chap18/sect3.htm.
Below is the description exactly what I want to do.
Please see at figure 18.6, 1st plot. Here it is an confidence ellipsoid.
Suppose now you put another 4 same ellipsoids on top
2001 Nov 15
1
ploting axes plaxes ?
I used in previous versions of R (R 1.1) to plot axes on projections of
factorial coordinates using the function plaxes. This doesn't exist any
more. Why this change ? No alternative ?
---------------
Charles RAUX,
Laboratoire d'Economie des Transports
CNRS-Universit? Lumi?re Lyon 2-ENTPE
email : charles.raux at let.ish-lyon.cnrs.fr
http://www.ish-lyon.cnrs.fr/let
2002 Jun 07
0
Ploting betas and p-values together
Hi all,
I have a data frame consisting of extracted results from a moving
regression. Next, I want to write a function that pick up the desired
coefficient columns and plots them on one page (about=5). Additionaly,
the plots should display the corresponding p-values. As for the
coefficients alone, it works fine. The problems arise when I try to add
the values of p-values as lines.
An example:
2004 Apr 18
1
Histogram ploting
Hi,
It's my first post on this group.
I've just started learning & using R and I like it ;-)
I have I think simple question. I'm trying to plot
a histogram for my data set.
My data set is defined as follows:
Class N
12.5 3
17.5 10
22.5 12
27.5 8
32.5 7
37.5 3
42.5 4
47.5 2
Class means middle of set of my ranges I define.
N column stores number of measurements counted to
2004 Sep 17
0
Ploting Mean and SE on regression lines
Dear all,
I wanted to plot the mean and standard error on the regression equation
(instead of individual data points) in the following code, but I could not
find the right code in the help files. Could someone please show how to do
this.
Thank you very much.
temp <- c(16,16,16,16,16, 20,20,20,20,20, 24,24,24,24,24, 28,28,28,28,28,
32,32,32,32,32)
dev1hr <- c(36.2, 34, 32.2, 36.4, 36,
2004 Oct 26
1
putting legend outside ploting region
Hello!
I have created a plot and would like to put a legend in the top left corner
(above and left of plotting region), but non of the functions can plot there
(I tried 'legend', 'text', 'points', 'lines', 'mtext', 'axes',...).
I would be very grateful if someone could help me put something in that
corrner, with any fuction.
Thanks,
Ales Ziberna
2005 Dec 07
1
ploting the two sets of data side by side
Hello R-users,
I am new to R-commands.
I have two sets of data:
x <- c(7, 7 , 8, 9, 15, 17, 18)
y <- c(7, 8, 9, 15, 17, 19, 20, 20, 25, 23, 22)
I have used 'cut' command to seperate them as follows
a <- cut(x, breaks =c(0,5,10,20,25,30))
b <- cut(y, breaks =c(0,5,10,20,25,30))
> table(a)
a
(0,5] (5,10] (10,20] (20,25] (25,30]
0 4 3 0
2008 Feb 08
1
Checking for linearity by ploting residuals against predicted values (lme)?
En innebygd og tegnsett-uspesifisert tekst ble skilt ut...
Navn: ikke tilgjengelig
Nettadresse: https://stat.ethz.ch/pipermail/r-help/attachments/20080208/5aae5afd/attachment.pl
2009 May 21
1
Need help on ploting Histograms
this is the command i made for a normal distribution, but when i try to plot
the histograms, i dont know why the bars don't stick on the line...
nsamples<-1000
sampsize<-15
Samples<-matrix(rnorm(nsamples*sampsize,0,1),nrow=nsamples)
a<-apply(Samples,1,var)
NC14<-a*14
x<-0:40
plot(x,dchisq(x,14),type='h')
hist(NC14,freq=F,add=T)
--
View this message in context:
2009 Oct 12
0
function: ploting an igraph object within lattice
Hi, I would like to be able to develop a function to plot an igraph object
with lattice (trellis type displays will be usefull for grouping etc).
Anyway, I mostly feeble
Igraph requires that you convert two columns of data two an igraph object
and to be able to plot the graph...I have tried a very, very simplistic (if
not naive) approach and surprise, surprise, it didn't work.
First of all,
2011 Jan 31
1
Question on ploting multiple series on the same plot
Thanks in advance for all help ,
I just started using R and have already done the following.
1. Read through multiple files to get input data
2. plot a vector (X say)
3. end
Now i want to plot the vector X for different files on the same plot, and I
don't know how to do that.
One option I considered was to have a global data frame that holds X for
each file.
and then plot after iterating
2011 Jul 28
2
Ploting gradient
I have a simple bar chart with annual precipitation (jan to dez).
I want to plot, above each bar (on a line), a square wich is color based on
a scale (0-100%). With 0 being white and 100 black, like a gradient. Is it
possible? How to?
Thanks
--
Fernando Andreacci
[[alternative HTML version deleted]]
2013 Apr 03
1
ploting several functions on the same plot
I want to superimpose two functions plots in the same page. The functions L0
and L1, defined below
f0 <- function(mu, xm, ds, n) {
1 - pnorm((xm-mu)/(ds/sqrt(n)))
}
f1 <- function(mu,n) f0(mu, 386.8, 48, n)
L0 <- function(mu) f1(mu, 36)
plot(L0,ylim=c(0,1),xlim=c(360,420))
L1 <- function(mu) f1(mu,100)
lines(L1)
The plot of L0 works pretty well. However, when
2011 Mar 03
1
Ploting Histogram with Y axis is percentage of sample for each bin
I'm trying to do something very simple...
I wan to plot a histogram where the y axis represent the percentage of the
total sample that each bin represents.
I know how to plot a histogram with the counts and density... but can't find
anything that gives me perenct of sample on the y axis.
Any help is appriciated
Below is the script I'm working with
par(mfrow=c(1,2))