Displaying 20 results from an estimated 30000 matches similar to: "Box Plot Text"
2008 Apr 14
1
boxplot tick locations
hi all-
i am creating a boxplot and would like to shift the x-axis tick marks
(named 1:23) so that the ticks are in between the boxes and not centered
in the middle of the boxes. i have searched the help files and google
and have not found what i am looking for.
does anyone know how to do this?
thanks!
s.heck
University of Colorado, Boulder
2008 Apr 30
2
ordering a factor in boxplot output
I'm sure I'm missing something obvious in the documentation...
I'm generating a boxplot
boxplot(CleanValue~ApptCategory*ReportingCode,data=newfile)
where ApptCategory is a factor with possible values ("New","Established")
Problem is, the output orders those factors alphabetically, and I'd really
rather see New come first. I'm apparently confused by the
2010 Sep 27
3
Alphabetical sequence of data along the x-axis in a box plot
Hello All,
I noticed when I generated some boxplots, the data is presented in
alphabetical order along the x-axis (the data in this case was the four
quandrants of a sample area (NE,NW, SE, SW) that was my first column of
data). Is there a way to have R plot the data in a different order? I
imagine you could use a dummy variable, but didn't know if there might
be a simple argument that
2003 Oct 09
1
Scoping rules
Dear List members:
I'm using R1.7.1 (Windows 2000) and having difficulty with scoping.
I've studied the FAQ and on-line manuals and think I have identified
the
source of my difficulty, but cannot work out the solution.
For the purposes of illustration. I have three functions as defined
below:
fnA <- function(my.x)
{
list(first=as.character(substitute(my.x)), second=sqrt(my.x))
}
2008 Apr 13
3
Matched pairs with two data frames
Hi,
I have a frame "treat" and want to find matched pairs in the data frame
"control". In the matched (combined) data frame there should be two
variables (0/1),indicating the "source" of the data (treat or control),
so that it is possibe to set a "filter" (extraxt/select data).
#Here are the dataframes (my real data frames have many variables)
treat <-
2004 Oct 28
3
ifelse() question
Hi
I have a data.frame with dim = 18638 (rows) 6 (cols)
names(dat)
[1] "id" "long" "lat" "species" "type" "size"
Variable "species" and "type" are factors. Species has 5 levels "BOV" "CAP"
"CER" "OVI" "POR"
Variable "type" has 11 levels
2011 Apr 17
3
Box plot with 5th and 95th percentiles instead of 1.5 * IQR: problems implementing an existing solution...
Hi all,
I'm just getting started with R and I would appreciate some help. I'm having
trouble creating a boxplot with whiskers at the 95th and 5th percentiles
instead of at 1.5 * IQR. I have read the relevant documentation, and checked
existing mails on this topic. I found a small modification that should work
: https://stat.ethz.ch/pipermail/r-help/2001-November/016817.html and tried
to
2007 Nov 26
3
determine the number of digits printed into graph with "text(...)"
Dear R comunity,
I am printing a number in a graph using "text(...)" - see code
below: "fraction" is my number. I wish to print only two digits of the
number and struggle to do this... options(digit=3) does not work...
Thank you for your suggestions! Cheers, Georg.
**********************************
Georg Ehret
Johns Hopkins
Baltimore
2008 Jan 31
2
box plot
the data is attached
I want to boxplot this data
y<-read.table("afdmmgs.txt", header=T)
boxplot(y)
Error in oldClass(stats) <- cl :
adding class "factor" to an invalid object
I get this error when I try and plot something with na in it
can boxplot just overlook the na and boxplot the values?
stephen
--
Let's not spend our time and resources thinking about
2012 Sep 16
1
Sub- or superscript in factorial variable - possible?
Hello R-users,
I would like to use subscript in chemical formulas for the different
treatments in a boxplot.
Fot title, xlab and ylab sub- and superscript is no problem, but for the
different treatments of the following example I cannot get subscript.
Example:
weight <- c(6,5,7,2,7,3,9,4,2,7,8,9,2,3,4,5)
treatments <- as.factor(rep(c('Control',
2013 Apr 26
2
sample size in box plot labels
Hi,
I would like to put the sample number beside each lable in a boxplot.
How do I do this? Essentially, I need to count the sample size for each
factor, see below:
Thanks
boxplot(DATA$K_Merge~factor(DATA$UnitName_1),axes=FALSE,col=colours)
title(main=list("Tukey Boxplot by Geology:\n K(%)",cex=cexlb))
axis(1, 1:21, labels=FALSE, las=2)
text(seq(1, 21, by=1), par("usr")[3],
2009 Sep 29
2
ggplot2 box plot notches
Dear List,
I just googled to find out if notched box plots are possible with
ggplot2, but couldn't find a answer to it.
boxplot() has the option: notch = TRUE, e.g.: boxplot(mpg$hwy, notch=TRUE)
My example code (taken from the net) is:
require(ggplot2)
qplot(class, hwy, fill=factor(year), data=mpg, geom="boxplot",
position="dodge")+theme_bw()
Thank you for you help!
2008 Mar 04
1
multiple plots with a title
Hi, I am wondering how can I add a common title to the
top of a page that contains multiple plots using,
e.g., par(mfrow=c(2,3))?
thanks
John Zhang
2008 Nov 12
1
sampling and testing
Hello everyone,
I have a dataset in the following format:
col1 col2
# #
# #
# #
# #
# #
# #
What I want to do is:
loop a random sample 10 times, and for each time it is sampled I want to
run a correlation between both columns. What I have so far is this:
>feb <- read.csv("corr.csv") # where the dataset is for February
>attach(feb)
>for(i in
2008 Jul 23
2
Can't Load Text Files
Hi,
I've completely forgotten how to do R, and it seems I can't even load
simple files correctly.
I have two tab deliminated text files (attached, these were test files
of the larger data files I'm trying to work with) that I am trying to
load into R so that I can merge them. They were originally excel files
but I used "saved as" to reformat to text. I don't know if
2012 Jan 27
2
help with Box plot
Dear researchers
I wish to plot a box plot without the mean line (the black line) and the i
wish a full line for the standard deviation
This is an example
mytest <- c(2.1,2.6,2.7,3.2,4.1,4.3,5.2,5.1,4.8,1.8,1.4,2.5,2.7,3.1,2.6,2.8)
boxplot(mytest)
really thanks
Gianni
[[alternative HTML version deleted]]
2009 Jul 02
1
Box Plot outliers label
Hi!
How can I add labels in the outliers inside a boxplot.
Here is my code, at now:
mun <- as.data.frame(read.csv2("consolidada_v3.csv"))
micro <- mun$nmicro
medprop <- mun$medprop
mimedprop <- split(medprop, micro)
boxplot(mimedprop, col="chartreuse3", main="Área média das propriedades
rurais", xlab="Microrregiões", ylab="ha")
I
2012 May 18
1
help with creating a box plot
Hi:
I am looking for some help in making two boxplots next to each other.
I have a data like this:
N1 T1 N2 T2 N3 T3 N4 T4 ... Nn Tn
7 8.2 4 5 8 10 4 5 ..... 10 11
I want to have box plot for all Normal samples (N1,N2,N3,N4,,,,Nn)
and another box plot for all tumors (T1,T2,T3,T4,...Tn).
I have data in a numeric class.
If data is represented as N1
2004 Dec 01
2
unbalanced design
Hi all,
I'm new to R and have the following problem:
I have a 2 factor design (a has 2 levels, b has 3 levels). I have an
object kidney.aov which is an aov(y ~ a*b), and when I ask for
model.tables(kidney.avo, se=T) I get the following message along with
the table of effects:
Design is unbalanced - use se.contrast() for se's
but the design is NOT unbalanced... each fator level
2011 Jun 24
2
text overlap in plot
Hey,
Here is a snippet that generated a boxplot and separates points so that
they do not overlap. I have a problem to avoir text overlapping. Any
help would be helpful.
>
attach(InsectSprays)
boxplot(count ~ spray, data = InsectSprays, outpch = NA)
stripchart(count ~ spray, data = InsectSprays,
vertical = TRUE, method = "jitter",
pch = 21, col =