.. .. ..@ xmin: num 248
>
> .. .. ..@ xmax: num 284
>
> .. .. ..@ ymin: num 107
>
> .. .. ..@ ymax: num 130
>
> ..@ rotated : logi FALSE
>
> ..@ rotation:Formal class '.Rotation' [package "raster"] with 2 slots
>
> .. ..
on Bessel 1841 ellipsoid\",\n"| __truncated__
..@ srs : chr "+proj=somerc +lat_0=46.952405556
+lon_0=7.439583 +k_0=1 +x_0=260 +y_0=120 +ellps=bessel +units=m
+no_defs"
..@ history : list()
..@ z : list()
> e <- extract(r,v)
E
В Mon, 26 Aug 2024 14:33:02 +0200
SIBYLLE STÖCKLI via R-help пишет:
> > # Extract raster values within the shapefile
> > extracted_values <- extract(raster_file, shape_file)
> > # Assuming the shapefile has multiple polygons and you want to
> > # create a boxplot for each
> > data_list <- lapply
Unless I'm missing the point, you are sending the summary data MS1s to the
plot. Is that not a VERY unusual way to do it. Let box plot do the
summary? Otherwise what do you want the notches to show?
On Fri, 16 Aug 2024, 17:21 Chris Evans via R-help,
wrote:
> That's not really a reprex Sibylle.
That's not really a reprex Sibylle. I did try to use it to see if I
could work out what you were trying to do and help but there is so much
in there that I suspect is distraction from the notch issue and its
error message.
Please can you give us something stripped of all unecessary things and
ment_text(size=18))+
> theme(axis.title=element_text(size=20))+
> ylab("Anteil BFF an LN [%]") +xlab("Jahr")+
> scale_color_manual(values=c("red","darkgreen"), labels=c("ÖLN", "BIO"))+
> scale_fill_manual(values=c("r
("red","darkgreen"), labels=c("ÖLN", "BIO"))+
scale_fill_manual(values=c("red","darkgreen"), labels= c("ÖLN", "BIO"))+
theme(legend.title = element_blank())+
theme(legend.text=element_text(size=20))
p1<-p
I don't see anything obviously wrong here. There may be something
subtle, but we probably won't be able to help without a reproducible
example ...
On 2024-08-16 9:24 a.m., SIBYLLE STÖCKLI via R-help wrote:
Dear community
I tried the following code using geom_boxplot() and notch=TRUE. D
Thank you.
On Fri, Sep 28, 2018 at 5:34 PM William Dunlap wrote:
>
> Use the 'at' argument to boxplot. E.g.,
>
> > x <- rep(c(2,4,8,16), c(5,10,20,30))
> > y <- seq_along(x)
> > par(mfrow=c(2,1))
> > boxplot(y~x, at=unique(x))
> > boxplot(y~x)
>
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.co
Use the 'at' argument to boxplot. E.g.,
> x <- rep(c(2,4,8,16), c(5,10,20,30))
> y <- seq_along(x)
> par(mfrow=c(2,1))
> boxplot(y~x, at=unique(x))
> boxplot(y~x)
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, Sep 28, 2018 at 3:05 AM, Luigi Marongiu
wrote:
> Dear all,
> I am using boxp
install.packages("HH")
library(HH)
system.file("demo/bwplot.examples.r", package="HH")
demo("bwplot.examples", package="HH", ask=FALSE)
## your example
dfA <- data.frame(X, Y=c(A, B, C))
dfA$X.factor <- factor(dfA$X)
position(dfA$X.factor) <- c(1,3,5)
bwplot(Y ~ X.factor, panel=panel.bwplot.interm
Hi Luigi,
An easy way is to use "points" to overplot the outliers:
grbxp<-boxplot(dfA$Y ~ dfA$X,
ylim=c(0, 200),
col="green",
ylab="Y-values",
xlab="X-values"
)
points(grbxp$group,grbxp$out,col="green")
On Fri, Sep 28, 2018 at 7:51 PM Luigi Marongiu wrote:
>
> Here is the code I have tried.
The code has to work to be useful.
including the data read - which, because it is on your D: drive, clearly can't
be read..
But here are some comments and some base graphics code that should get you
started;
> As I mentioned below, would like to add the data lab
Hello Dave
Here is the code I have tried.
getwd()
setwd("D:/BAP Session/Nuance")
getwd()
AmbientTr <- read.csv("AmbientBatchbox.csv", stringsAsFactors = TRUE)
str(AmbientTr)
summary(AmbientTr)
install.packages("ggplot2")
library(ggplot2)
boxplot(RTF~Batch,data=AmbientTr, ylim = c(0,30), main=
Your snapshot did not make it to the list. Only a few types of plots are
accepted, e.g. .png. But we don't need a picture as much as we need a copy of
your code with enough of your data to reproduce what you are trying to do. Use
dput(head(x, 15)) to print out 15 lines of your data and include a
on, TX 77843-4352
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ista Zahn
Sent: Thursday, September 28, 2017 12:27 PM
To: Ed Siefker
Cc: r-help
Subject: Re: [R] Boxplot, formula interface, and labels.
mybp <- boxplot(count ~ geno * tissue, data =
mybp <- boxplot(count ~ geno * tissue, data = mydata, plot = FALSE)
mybp$names <- gsub("\\.", "\n", mybp$names)
bxp(mybp)
See ?boxplot for details.
Best,
Ista
On Thu, Sep 28, 2017 at 12:40 PM, Ed Siefker wrote:
> I have data I'd like to plot using the formula interface to boxplot.
> I call boxp
Another way to think of this problem. If I could get my hands on the
vector of names boxplot()
is creating, I could use gsub() to replace '.' with '\n'.
Is there something I could run before boxplot() that would give me
that vector of names which
I could then pass to boxplot()?
On Thu, Sep 28, 2
Hi Tagmarie,
Have a look at gap.boxplot (plotrix).
JIim
On Mon, Sep 28, 2015 at 4:50 PM, Tagmarie wrote:
> Hi,
> I want to draw a usual boxplot. I have one outliner way up. It makes my
> boxes being drawn tiny. I do not want to delete the outliner as it is also
> of ecological importance.
> I
I see that you have used
add = TRUE
in the boxplot call. Add only makes sense if there is already a plot to
which to add the boxplot. But your boxplot is first, so there isn't
anything to add it to.
Try doing the beeswarm plot first?
Will the two plots will have the same y axis ranges?
Minor
Dear all,
Thanks very much for your help! I will keep your suggestions in mind
and will get back to you if I get stuck!
On Tue, Jun 16, 2015 at 1:28 PM, Roger Bivand wrote:
> Boris Steipe utoronto.ca> writes:
>
>>
>> Your workflow in principle is:
>>
>> - read the image into an object for whi
Boris Steipe utoronto.ca> writes:
>
> Your workflow in principle is:
>
> - read the image into an object for which you can obtain values-per-pixel
in a 2D structure;
> - read the shapefile and convert into a polygon;
> - determine the bounding box of the polygon;
> - use the inout() function of
Your workflow in principle is:
- read the image into an object for which you can obtain values-per-pixel in a
2D structure;
- read the shapefile and convert into a polygon;
- determine the bounding box of the polygon;
- use the inout() function of the splancs package to get a list of booleans for
From: macque...@llnl.gov
> > Sent: Thu, 11 Jun 2015 21:44:39 +
> > To: kris.si...@research.uwa.edu.au, r-help@r-project.org
> > Subject: Re: [R] Boxplot function error-help required
> >
> > In addition to the other answers, I would suggest that t
Message-
> From: macque...@llnl.gov
> Sent: Thu, 11 Jun 2015 21:44:39 +
> To: kris.si...@research.uwa.edu.au, r-help@r-project.org
> Subject: Re: [R] Boxplot function error-help required
>
> In addition to the other answers, I would suggest that the next time you
> get
On Jun 11, 2015, at 2:44 PM, MacQueen, Don wrote:
> In addition to the other answers, I would suggest that the next time you
> get the "could not find function" message, try like this:
>
> help.search('Boxplot')
Spencer Graves uses RSiteSearch() as the underlying function for sos::findFn
--
On Jun 11, 2015, at 2:19 PM, John Kane wrote:
> Well it might have worked for your supervisor but I don't see how.
>
> As was mentioned it is boxplot , not Boxplot and the rest of the syntax looks
> dodgy to say the least.
There is a "Boxplot" function in package 'car' and it has a labels ar
In addition to the other answers, I would suggest that the next time you
get the "could not find function" message, try like this:
help.search('Boxplot')
Among the output from that you should see
graphics::boxplot Box Plots
which should lead you to "boxplot" instead o
Well it might have worked for your supervisor but I don't see how.
As was mentioned it is boxplot , not Boxplot and the rest of the syntax looks
dodgy to say the least.
Try
boxplot(Acc_S$Subj ~ Acc_S$Acc)
I don't see how label = will work , ?boxplot says it should be names = and as
the code
R is case sensitive.
try "boxplot" not "Boxplot"
On Thu, Jun 11, 2015 at 7:20 AM, Kris Singh
wrote:
> Dear Sirm/Madam,
>
> Just wondering if someone could help me. I've tried running a code on R
> and the code includes the following:
>
>> Boxplot(~Acc_S$Acc, label=Acc_S$Subj)
>
> But I receive
On 25/05/14 23:57, Brian Smith wrote:
Hi,
I wanted to have a different font for my x-axis and y-axis. How can I use
the par function to specify different font sizes for x and y axis? For
example:
x <- matrix(rnorm(2000),200,10)
colnames(x) <- letters[1:10]
par(cex.axis=0.5)
boxplot(x,cex=0.2)
Thanks very much, that worked superb!
On Thu, May 22, 2014 at 3:41 PM, Richard M. Heiberger wrote:
> ## Shane,
>
> ## This uses your color_list. Your other variables weren't included
> in the email
> ## so I invented some data.
>
> ## I recommend bwplot() using panel=panel.bwplot.superpose
>
>
## Shane,
## This uses your color_list. Your other variables weren't included
in the email
## so I invented some data.
## I recommend bwplot() using panel=panel.bwplot.superpose
## and I also show how to use boxplot()
## install.packages("HH") ## if necessary.
library(HH)
## install.packages
Something like:
tmp <- boxplot(V ~ date, data=pippo, plot=FALSE)
bxp(tmp, at=sort(unique(pippo$date))
You may need to adjust the x-axis limits and the box widths.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 3/13/1
You asked for basic training guides...
1. An Introduction to R ships with R. Did you miss it?
2. Google is your friend. There are a ton on the web. Search!
-- Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowled
Hi,
May be this helps:
dat <- read.table(text="Designation Basic
ASA .25
ASA .28
ASA .32
TASA .45
TASA .33
TASA .43",sep="",header=TRUE,stringsAsFactors=FALSE)
boxplot(Basic~Designation,data=dat,col=2:3)
#or
library(ggplot2)
ggplot(dat,aes(x=Designation,
On 09/27/2013 12:10 AM, Rodrigo César da Silva wrote:
Hi, I have a data set that contains a set of universities and a number of
statistics about the performance of students on an exam. A sample of the table
follows:
Institutions_Name
Mean
Median
Minimum
Maximum
1Quartile
3Quartile
CEN
The boxplot function calls other functions, the boxplot.stats function
calculates the stats, then the bxp function does the actual plotting. So
just look at the structure of the object that is passed to bxp, reformat
your data to that structure, and call bxp directly.
On Thu, Sep 26, 2013 at 8:1
You can't mix number and character data in a data frame column, so you will
probably find that all your variables are factors, not numbers. Try, for example
class(Daten$V2)
It looks like you failed to specify 'header=TRUE' in a read.table statement.
Reread the data with headers properly treated
It will not work because the presence of the first row means that all
the variables are read in as factors, not numeric. You must convert
numeric variables to numeric **after** eliminating the first row, or
read the data in using read.table(..., head=TRUE). See ?read.table for
details.
**After** t
Hi,
Try this:
dat1<- read.table(text="
V1 V2 V3
1 Dosis Gewicht Geschlecht
2 0 6.62 m
3 0 6.65 m
4 0 5.78 m
5 0 5.63 m
6 1 6.78 m
7 1 6.45 m
8 1 5.68 m
9 1
Beatriz,
In this case, use the car package and run the following:
> bp <- Boxplot(DATA$ave, data= DATA, main= "Average Size", labels=DATA$num,
> Id.method=c("y"))
This will print out the labels 211 & 225 beside the outlier points. As you can
see, the instruction assigns the values in the num c
zález Domínguez
Cc: r-help-ow...@r-project.org ; R Help 1 ; R Help 2
Subject: Re: [R] Boxplot Labels OK
Hello,
The answers you had in another thread could lead you to
bp <- boxplot(DATA$ave, data= DATA, main= "Average Size")
idx <- which(DATA$ave %in% bp$out)
text(x= bp$group, y=
Hello,
The answers you had in another thread could lead you to
bp <- boxplot(DATA$ave, data= DATA, main= "Average Size")
idx <- which(DATA$ave %in% bp$out)
text(x= bp$group, y= bp$out, labels= DATA$num[idx], cex = 0.7, pos = 4)
Hope this helps,
Rui Barradas
Em 09-04-2013 17:31, Beatriz Gonzá
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of John Kane
> Sent: Tuesday, April 09, 2013 10:45 AM
> To: Beatriz González Domínguez; R Help; r-help@r-project.org
> Subject: Re: [R] Boxplot Labels
>
> p <- boxplot(dat1$ave, data= da
Hello,
The construct data.frame(cbind(...)) is not at all needed, the following
is much better.
dat1 <- data.frame(num, ave)
Also, I've modified the text() call a bit, in order to have R tell the
dat1$num corresponding to the (unique) max of ave, and with an extra
argument, pos. This would
p <- boxplot(dat1$ave, data= dat1, main= "Average Size", yaxt = "n")
text(1.1, , y = max(dat1$ave), label = "26", cex = .7)
but I don't understand
#I would like the labels that appear in the boxplot to be DATA$num values.
You want 26 values potted?
John Kane
Kingston ON Canada
> ---
Estimada Beatriz,
If you use the Box.plot function in the car package (notice that here it's
Box.plot, not box.plot), and add the argument id.method=c("identify"), it
should work.
You only need one instruction:
R> library(car)
R> bp <- Boxplot(DATA$ave, data= DATA, main= "Average
Size",id.meth
geom_boxplot() + coord_flip() +
> scale_fill_discrete(guide=FALSE)
>
>
> ##===end code==
>
>
>
> John Kane
> Kingston ON Canada
>
>
> -Original Message-
> *From:* annij...@gmail.com
> *Sent:* Sat, 23
guide=FALSE)
##===end code==
John Kane
Kingston ON Canada
-Original Message-
From: annij...@gmail.com
Sent: Sat, 23 Mar 2013 10:22:02 -0400
To: jrkrid...@inbox.com
Subject: Re: [R] boxplot
Hello John,
I apologize for the del
ada
>
>
> > -Original Message-
> > From: annij...@gmail.com
> > Sent: Fri, 22 Mar 2013 10:46:21 -0400
> > To: dcarl...@tamu.edu
> > Subject: Re: [R] boxplot
> >
> > Hello All,
> >
> > On the subject of boxplots, I have multiple data sets of un
On the subject of boxplots, I have multiple data sets of unequal sample
sizes and was wondering what would be the most efficient way to read in
the data and plot side-by-side boxplots, with options for controlling
the orientation of the plots (i.e. vertical or horizontal) and the
spacing? Your
he same x and y scales?
Or are you talking about essentilly independent data sets that it makes sense
to graph in a grid ?
John Kane
Kingston ON Canada
> -Original Message-
> From: annij...@gmail.com
> Sent: Fri, 22 Mar 2013 10:46:21 -0400
> To: dcarl...@tamu.edu
> Subje
l Message-
> > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> > project.org] On Behalf Of Jim Lemon
> > Sent: Thursday, March 21, 2013 4:05 AM
> > To: carol white
> > Cc: r-h...@stat.math.ethz.ch
> > Subject: Re: [R] boxplot
> >
> &
Texas A&M University
College Station, TX 77843-4352
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Jim Lemon
> Sent: Thursday, March 21, 2013 4:05 AM
> To: carol white
> Cc: r-h...@stat.math.ethz.ch
> Sub
On 03/21/2013 07:40 PM, carol white wrote:
Hi,
It must be an easy question but how to boxplot a subset of data:
data = read.table("my_data.txt", header = T)
boxplot(data$var1[data$loc == "nice"]~data$loc_type[data$loc == "nice"])
#in this case, i want to display only the boxplot loc == "nice"
#d
v <- c(V1=2, V2=4 ,V3=6 ,V4=7 ,V5=12 ,V6=33 ,V7=43 ,V8=53)
boxplot(v[seq(from=1, to=8, by=2)], v[seq(from=2, to=8, by=2)])
Sincerely
Marc
Le 13/03/13 23:14, wei wu a écrit :
Hi,
I try to boxplot following data on the subset of (V1,V3,V5,V7) and
(V2,V4,V6,V8)
V1 V2 V3 V4 V5 V6 V7 V8
2
On 03/06/2013 12:45 AM, km wrote:
Dear All,
I have a table as following
position type count
1 2 100
1 3 51
1 5 64
1 8 81
1 6 32
2 2 41
2 3 85
and so on
Normally if would have a vector of 2,
Nice boxplot but you forgot to tell us the issues :)
John Kane
Kingston ON Canada
> -Original Message-
> From: asir...@gmail.com
> Sent: Sat, 9 Feb 2013 08:09:13 -0800
> To: r-help@r-project.org
> Subject: [R] Boxplot Issues
>
> __
> R-help@r
On 17/11/12 09:04, Elli wrote:
How to calculate the boxplots R? This question arises because we are building
manually boxplots, we consulted various literature sources for calculations
of the boxplot but our results differ from those generated by R, especially
when calculating the whiskers.
What
On Nov 16, 2012, at 2:04 PM, Elli wrote:
> How to calculate the boxplots R? This question arises because we are building
> manually boxplots, we consulted various literature sources for calculations
> of the boxplot but our results differ from those generated by R, especially
> when calculating t
distance, colour = Diet_B )) +
geom_boxplot() +
xlab("Migration") + ylab("Distance")
p
John Kane
Kingston ON Canada
> -Original Message-
> From: r...@temple.edu
> Sent: Mon, 24 Sep 2012 19:00:09 -0400
> To: elaine.kuo...@gmail.com
> Subject: Re:
hello Richard,
Thank a lot.
The plot is breathtaking.
I would like to make three modifications.
Please kindly help and thanks.
1. making outliers from dash to empty circle (pch=2)
I tried plot.symbol as the code below but failed.
2. making font size of axis (levels) larger to 1.2
unsure where t
On 09/25/2012 06:08 PM, Wolf Sarah wrote:
Hello
I have two boxplots and want the names to be in italic, which works fine,
except that the second name (Sinapis) is raised, compared to the first name:
bicran<-c(0.55,0.25,0.6,0.83,0.11,0,0.67,1.36,0.9,1.09)
bicsin<-c(0.09,0.53,0.45,0.38,1.18,0.45
See ?panel.bwplot for pch="|".
That explains that pch="|" puts horizontal lines instead of dots at the
median(and also at the
outliers).
The rep makes it into a vector to be indexed by panel.bwplot.intermediate.hh
in each of its calls to panel.bwplot
The names under each plot are the levels of the
Hello Sarah,
Thanks for the suggestion of
table(obs.group).
I checked it and found no problems of the obs.group.
As for using dput(),
please kindly share some examples to display the colored graph in r-help.
In fact, some colors were assigned to all types of diets, like
A=>red1
B=>red2
C=>green1
Hello Richard,
Your answer is a great help to my problem.
The boxplot of 13 colors is very beautiful :)
By the way, I have three subsequent questions of your code
1. the meaning of pch=rep("|",13)
I read the R manual but could not interpret the part.
"pch" means the point type in plot, but here
## I would do this in lattice using the panel.bwplot.intermediate.hh
## function from the HH package.
## install.packages("HH") ## if necessary
library(HH)
dataN <- data.frame(GE_distance=rnorm(260),
Diet_B=factor(rep(1:13, each=20)))
Diet.colors <- c("forestgreen", "darkgreen
Hi Elaine,
Without a reproducible example it's impossible to say, but I'd take a
hard look at:
table(obs.group)
If that doesn't give you some insight, a small reproducible example
included in your email using dput() would allow us to answer you more
effectively.
Sarah
On Mon, Sep 24, 2012 at 6
ok, I see now!
here it is the reproducible example along with the final code (aslo with
the median line instead of a point)
thank you all for the great help
max
# start code
library(lattice)
test<-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
Hello,
Em 17-09-2012 18:50, David Winsemius escreveu:
On Sep 17, 2012, at 4:18 AM, maxbre wrote:
here it is, I think (I hope) I'm getting a little closer with this, but
still there is something to sort out...
error using packet 1
unused argument(s) (coef =1.5, do.out=TRUE)
by reading the
On Sep 17, 2012, at 4:18 AM, maxbre wrote:
> here it is, I think (I hope) I'm getting a little closer with this, but
> still there is something to sort out...
>
> error using packet 1
> unused argument(s) (coef =1.5, do.out=TRUE)
>
> by reading the help for panel.bwplot at the argument "stat
here it is, I think (I hope) I'm getting a little closer with this, but
still there is something to sort out...
error using packet 1
unused argument(s) (coef =1.5, do.out=TRUE)
by reading the help for panel.bwplot at the argument "stats" it says: "the
function must accept arguments coef and d
thank you for the help, bert
unfortunately, for reasons I can not understand (yet) I can not put to
wortk it all
(I'm always in trouble with the panel functions);
max
Il 14/09/2012 18:38, Bert Gunter ha scritto:
Thanks for the example. Makes it easy to see what you mean.
Yes, if I understan
Thanks for the example. Makes it easy to see what you mean.
Yes, if I understand you correctly, you are right:
boxplot() (base) transforms the axes, so ?boxplot.stats, which is the
function that essentially computes the boxplot, does so on the
original data.
bwplot(lattice) transforms the data fir
These are warnings and I think that you can safely ignore them.
It looks like the code should replace the line
if (x$datamean)
with something like
if (!is.null(x$datamean))
Yes, I think so too - thanks for reporting this.
David
__
R-help@r-pr
On 2012-09-03 08:34, Dominic Roye wrote:
Hello everybody,
I have a problem with the commando of boxplot -bclust.
http://127.0.0.1:13155/library/e1071/html/boxplot.bclust.html
data(iris)
bc1 <- bclust(iris[,1:4], 3, base.centers=5)
Committee Member: 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1) 8(1) 9(1
dates) , temp, fill = factor(roof))) +
geom_boxplot(statistic = "identity") +
ylab("Temperature") + xlab("Months") +
scale_fill_hue(name="Roof\nType") +
facet_grid( year ~ .)
p
# ===
Hello,
I'm not sure wether this is what you want, but here it goes.
dd <- structure( ...etc... ) # your dataset
# make group identifiers
ym <- paste(dd$Year, as.character(dd$Month), sep="-")
op <- par(las=2) # make labels perpendicular to axis
bp <- boxplot(Temp ~ ym, data=dd)
axis(1, at = se
hi thanks
the dput output is...
structure(list(Year = c(2011L, 2011L, 2011L, 2011L, 2011L, 2011L,
2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L,
2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L,
2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L, 2011L,
2011L,
Hi,
I recommend the use of panel.bwplot.intermediate.hh in the HH package.
This is a lattice function. Lattice usually gives you more control than
base graphics.
I build your example in several steps here.
Critical items to notice:
You must declare the months to be ordered; by default they are s
Hi Andy,
Nice plot but yes, probably not exactly what you want.
Thanks for providing the code. The nextthing you need to do is to send us some
data to go with the code. There is a very handy function called dput() , which
converts a dataset into a format that you can just copy from your R t
Dear phillen,
You can use the identify() command following boxplot() to identify outliers, or
more simply, the Boxplot() function in the car package, which will do this for
you (see the first example in ?Boxplot).
I hope this helps,
John
John F
Probably the simplest answer is to google 'label boxplot outliers in R'. I
found half a dozen solutions, (one of them my own, but that doesn't quite
answer your question).
Adding names to a series of data can be as simple as saying
names(x) <- paste("x", 1:length(x))
After that, the solutions g
On 25.07.2012 13:26, phillen wrote:
Dear R-users!
I boxplotted some data. the class of the data is numeric. There are some
outliers and I would like to see their names in the graphic. So, instead
that the data points of the outliers are plotted as points, I would like to
have their names plott
PLEASE do read the posting guide.
You really need to supply some sample data and the code you are using. We can
make guesses about what you are doing but it is much easier to actually look at
the data and code.
Please use dput() ( see ?dput) to supply some sample data.
John Kane
Kingston ON
> When i make Boxplots with a lot of boxes, the names of them
> get only written down every second "column".
> Since they aren't in any way ordered, you don't see anymore
> to what they belong.
Jessica,
Another possibility if the names are long is to use abbreviated factor levels.
The labels a
Dear Jessica,
You might try par(las=2) to rotate the tick labels to be perpendicular to the
axes.
I hope this helps,
John
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Ca
You might alternatively find the horizontal = TRUE with las=2 to be useful; e.g.
dat <- data.frame(val=rnorm(100),
grp=rep(apply(matrix(sample(letters,100,rep=TRUE),nr=5),2,paste,collapse=""),5))
boxplot(val~grp,horizontal=TRUE,data=dat,las=2)
## Note that las=2 might also help with horizonta
Copied the wrong lines, sry
l<-rep(list(1:5),20); boxplot(l,names=sample(1:20,20))
of course.
thanks for the answer
.
On 19.07.2012, at 16:17, Peter Ehlers wrote:
> On 2012-07-19 06:58, Jessica Streicher wrote:
>> When i make Boxplots with a lot of boxes, the names of them get only written
>>
On 2012-07-19 06:58, Jessica Streicher wrote:
When i make Boxplots with a lot of boxes, the names of them get only written down every
second "column".
Since they aren't in any way ordered, you don't see anymore to what they belong.
example:
l<-rep(list(1:5),20); boxplot(l,names=sample(20,1:20)
Hello,
Maybe this iss what you're looking for. GD is your data.frame.
multi.boxplot <- function(x, by, ...){
x <- as.data.frame(x)
sp <- split(x, by)
len <- length(sp) - 1
n <- ncol(x)
n1 <- n + 1
boxplot(x[[ 1 ]] ~ by, at = 0:len*n1 + 1,
Dear Mr Dunlap,
Your solution works really fine. Thank you for your time,
Best wishes,
Luigi
-Original Message-
From: William Dunlap [mailto:wdun...@tibco.com]
Sent: 23 June 2012 18:48
To: Luigi
Cc: 'Martin Maechler'; r-help@r-project.org
Subject: RE: [R] Boxplot with Log1
...@r-project.org] On
Behalf Of Martin Maechler
Sent: Saturday, 23 June 2012 4:57a
To: Luigi; William Dunlap
Cc: r-help@r-project.org
Subject: Re: [R] Boxplot with Log10 and base-exponent axis
> The key is to supply an expression, not text, to the labels argument to axis.
> See help(&quo
-
> From: Luigi [mailto:marongiu.lu...@gmail.com]
> Sent: Saturday, June 23, 2012 8:49 AM
> To: William Dunlap
> Cc: 'Martin Maechler'; r-help@r-project.org
> Subject: RE: [R] Boxplot with Log10 and base-exponent axis
>
> Thank you!
> This works good. I understand th
Thank you!
This works good. I understand that the value are now in Log10 scale,
although I did not understand what is happening at line 4 of your script.
I would like to ask how can I change the y limits since they now depend on
par("user"). What if I'd like y limits extending from 1000 to 1 000
> The key is to supply an expression, not text, to the labels argument to axis.
> See help("plotmath") for details. Here is an example:
> x <- list(One=10^(sin(1:10)+5), Two=10^(cos(1:30)*2))
> boxplot(x, log="y", yaxt="n")
> ylim <- par("usr")[3:4]
> log10AtY <- seq(ceiling(ylim[1]), f
ware
wdunlap tibco.com
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
> Of William Dunlap
> Sent: Friday, June 22, 2012 8:14 AM
> To: Luigi; r-help@r-project.org
> Subject: Re: [R] Boxplot with Log10 and base
The key is to supply an expression, not text, to the labels argument to axis.
See help("plotmath") for details. Here is an example:
x <- list(One=10^(sin(1:10)+5), Two=10^(cos(1:30)*2))
boxplot(x, log="y", yaxt="n")
ylim <- par("usr")[3:4]
log10AtY <- seq(ceiling(ylim[1]), floor(ylim[2]))
Dear Prof. Eduardo,
Try this:
rot<-expression(paste("DGL growth (cm.yr"^"-1",")"))
boxplot(five$gr13~five$Code, xlab="Species code", ylab=rot)
In this page there are some useful mathematical annotations in R:
http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/plotmath.html
Best wishe
1 - 100 of 269 matches
Mail list logo