Displaying 20 results from an estimated 3000 matches similar to: "geom_boxplot"
2012 Jun 28
6
Help
Dear all,
I need some help on plotting multiple boxplots on one figure.
I have three matrix A, B and C. Each of them is a 1000 by 10 matrix.
The 10 columns of all three matrix correspond to the
10 values of the same parameter, say k=1, ..., 10.
I want to make a plot where x axis represents different values of k.
For each k value, I want to plot three boxplots, one on top of another.
For
2012 Aug 06
4
Overlay Histogram
Dear all,
For two sets of random variables, say, x <- rnorm(1000, 10, 10) and y
<- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x and y
on the plot of y vs. x?
The histogram of x is on the x axis and that of y is on the y axis.
The density curve here is to approximate the shape of the distribution
and does not have to have area 1.
Thank you
2007 Oct 01
4
how to plot a graph with different pch
I am trying to plot a graph but the points on the graph should be
different symbols and colors. It should represent what is in the legend.
I tried using the points command but this does not work. Is there
another command in R that would allow me to use different symbols and
colors for the points?
Thank you kindly.
data(mtcars)
plot(mtcars$wt,mtcars$mpg,xlab= "Weight(lbs/1000)",
2013 Mar 14
4
plotting
Hi alL,
I have a data frame with 4 columns: "value", "time", "group" and "id".
I would like to plot "value" vs. "time" with different colors for
different levels of "group" and
different symbols for different values of "id".
I think I could do this but I would like to see what is an easier way to
plot
the
2012 Aug 07
2
Rcolorbrewer Package
Hi all,
I am trying to download the Rcolorbrewer package from Cran
http://cran.r-project.org/web/packages/RColorBrewer//index.html
It seems the files have been removed. Does anyone know where can
I download the package?
Thanks.
Hannah
[[alternative HTML version deleted]]
2010 Jul 23
3
Figures in Latex
Hi all,
I want to add 6 plots in the format of 2 columns and 3 rows as one
figure in latex. The plots are in .eps file.
I know how to add 2 plots side by side, but could not figure out how to do
multiple rows.
I know this may not be the right place to ask such a question. But I do
not know who to ask, so just try my
luck here.
Thank you in advance.
2010 May 28
2
problem with a function
Hi all,
I have a function rho.f which gives a list of estimators. I have the
following problems.
rho.f(0.3) gives me the right answer. However, if I use rho.f(corr[4]) give
me a different
answer, even though corr[4]==0.3.
This prevents me from using a for loop. Can someone give me some help?
Thank you very much in advance.
Hannah
>
2011 Sep 03
3
question with uniroot function
Dear all,
I have the following problem with the uniroot function. I want to find
roots for the fucntion "Fp2" which is defined as below.
Fz <- function(z){0.8*pnorm(z)+p1*pnorm(z-u1)+(0.2-p1)*pnorm(z-u2)}
Fp <- function(t){(1-Fz(abs(qnorm(1-(t/2)))))+(Fz(-abs(qnorm(1-(t/2)))))}
Fp2 <- function(t) {Fp(t)-0.8*t/alpha}
th <- uniroot(Fp2, lower =0, upper =1,
2012 Aug 15
4
Import Data from Excel
Dear all,
I want to import just part of an excel data file into R.
I would like to have the data imported without
rownames or colume names.
I used read.delim("clipboard", header=F). Somehow even though
I added the argument "header=F", I still have the row names V1, V2, ...,
Does anyone know how to fix this?
Thanks very much in advance.
Hannah
[[alternative
2011 Oct 04
1
ggplot2: changing default colors of boxplot
Hi,
I wanted to change the default colors appearing in boxplot. For example, the
following code (from the package/documentation):
===========
library(ggplot2)
p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_boxplot(aes(fill = factor(am)))
===========
Gives the default colors. What do I need to do to modify this so that:
1. Change the colors from green and red to blue and black
2. Only
2011 Sep 26
2
Boxplot BUT with Mean, SD, Max & Min ?
People,
It appears that there is no way of getting Boxplots to plot using Mean,
SD, Max & Min - is there something else that would do what I want? I
couldn't find it . .
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil at pricom.com.au
2017 Jun 01
2
subletting an array according to dimnames
Hi all,
I have a three dimensional array with the corresponding dimension names.
I would like to subset the array according to the dimension names. For
example,
suppose I want to extract the values corresponding to A=20, B=10, C=0. I
know I
can do:
P2[dimnames(P2)$A==20, dimnames(P2)$B==10, dimnames(P2)$C==0]
But is there a better way for doing this? Thanks for your help!
Hanna
>
2014 Jun 24
2
Making several plots using a loop function
Hi all,
When making a bunch of plots using a loop function, how to add title to
reflect different plots.
Specifically, for the code below, I generated 9 plots. I would like to add
a title to each plot.
For example, the titles will be respectively, plot1, plot 2, … plot 9.
Thank you very much!
Hanna
par(mfrow=c(3,3), pty="s", pch=16, col="blue")
for ( i in 1:9) {
lm1
2018 Feb 06
2
question with integrate function
Hi all,
The function h below is a function of c and it should be a monotone
increasing function since the integrand is nonnegative and integral is
taken from c to infinity. However, as we can see from the plot, it is not
shown to be monotone. Something wrong with the usage of integrate function?
Thanks so much for your help.
Hanna
h <- function(c){
g <- function(x){pnorm(x-8.8,
2010 Mar 10
2
ggplot2: "varwidth"-equivalent for geom_boxplot?
Hi,
Is there such a thing? If no: is it easily simulated?
thanks, Joh
2010 Oct 12
2
extract rows of a matrix
Hi all,
I want to extract every 20th row of a big matrix, say 10000 by 1000.
What is the simper way to do this?
Thank you very much!
Hannah
[[alternative HTML version deleted]]
2017 Jul 28
3
problem with "unique" function
I have the joint distribution of three discrete random variables z1, z2 and
z3 which is captured by "z"
and "prob" as described below.
For example, the probability for z1=0.46667, z2=-1 and z3=-1 is 2.752e-13.
Also, the probability adds up to 1.
> head(z) z1 z2 z3
[1,] -0.46667 -1.0000 -1.0000
[2,] -0.33333 -0.9333 -0.9333
[3,] -0.20000 -0.8667 -0.8667
2010 Jun 23
2
question about a program
Dear all,
I have the following program for a multiple comparison procedure.
There are two functions for the two steps. First step is to calculate the
critical values,
while the second step is the actual procedure [see below: program with two
functions].
This work fine. However, However I want to put them into one function
for the convenience
of later use [see below: program with one
2011 Oct 18
1
Latex question
Dear all,
This may not be the right place for latex questions, but I
do not know where else to ask the question.
I have two subfigures. I want the first subfigure to have a caption on
the side of it and the second subfigure
to have a caption below it.
Thank you.
Hannah
[[alternative HTML version deleted]]
2012 Jul 23
2
image function
Dear all,
I have a question regarding changing the xlim and ylim in the function
image().
For example, in the following code, how can I have a heatmap with
xlim=ylim=c(0, 100)
instead of (0,1).
Thank you very much.
x <- matrix(rnorm(10000, 0,1), 100, 100)
image(x)
Hannah
[[alternative HTML version deleted]]