Re: [R] boxplot of raster and shapefile

2024-08-28 Thread Ben Tupper
.. .. ..@ xmin: num 248 > > .. .. ..@ xmax: num 284 > > .. .. ..@ ymin: num 107 > > .. .. ..@ ymax: num 130 > > ..@ rotated : logi FALSE > > ..@ rotation:Formal class '.Rotation' [package "raster"] with 2 slots > > .. ..

Re: [R] boxplot of raster and shapefile

2024-08-28 Thread SIBYLLE STÖCKLI via R-help
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

Re: [R] boxplot of raster and shapefile

2024-08-27 Thread Ivan Krylov via R-help
В 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

[R] boxplot of raster and shapefile

2024-08-26 Thread SIBYLLE STÖCKLI via R-help
Dear community This example code works library(raster) library(sp) library(rgdal) library(ggplot2) # Create some sample raster data raster_file <- raster(ncol=36, nrow=18) raster_file[] <- 1:ncell(raster_file) plot(raster_file) #Create some sample polygons cds1 <- rbind(c(-180,-20), c(-160,5),

Re: [R] boxplot notch

2024-08-16 Thread CALUM POLWART
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.

Re: [R] boxplot notch

2024-08-16 Thread Chris Evans via R-help
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

Re: [R] boxplot notch

2024-08-16 Thread Bert Gunter
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

Re: [R] boxplot notch

2024-08-16 Thread SIBYLLE STÖCKLI via R-help
("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

Re: [R] boxplot notch

2024-08-16 Thread Ben Bolker
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

[R] boxplot notch

2024-08-16 Thread SIBYLLE STÖCKLI via R-help
Dear community I tried the following code using geom_boxplot() and notch=TRUE. Does anyone know if the command �notch=TRUE� is at the wrong place in my special code construct? Without notch=TRUE the code provides the planned ggplot. Kind regards Sibylle Code: MS1<- MS %>% filte

Re: [R] Boxplot with linear (not categorical) x-axis

2018-09-30 Thread Luigi Marongiu
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

Re: [R] Boxplot with linear (not categorical) x-axis

2018-09-28 Thread William Dunlap via R-help
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

Re: [R] Boxplot with linear (not categorical) x-axis

2018-09-28 Thread Richard M. Heiberger
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

Re: [R] Boxplot: draw outliers in colours

2018-09-28 Thread Jim Lemon
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: >

[R] Boxplot with linear (not categorical) x-axis

2018-09-28 Thread Luigi Marongiu
Dear all, I am using boxplot to draw some data. Would be possible to have the X-axis linear (as in a scatter plot) instead of the standard categorical axis? The data I have is subdivided into three groups at the numerical values 1, 3, 5; boxplot treats these as categorical values; in fact, I can wr

[R] Boxplot: draw outliers in colours

2018-09-28 Thread Luigi Marongiu
Dear all, I am trying to overlap two series of boxplots on the same graph. In order to distinguish the outliers from one series to the other, would be possible to colour the outliers?: instead of the standard black, is it possible to give a chosen colour? Thank you >>> This is the example. I could

Re: [R] BoxPlot Adding Mean and Median Values

2018-05-10 Thread S Ellison
> 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

Re: [R] BoxPlot Adding Mean and Median Values

2018-05-09 Thread Jayaganesh Anbuganapathy
ganesh Anbuganapathy Sent: Tuesday, May 8, 2018 11:10 PM To: r-help@r-project.org Subject: [R] BoxPlot Adding Mean and Median Values Dear Team - I would like to get your help on adding the values of mean and median of RTF as mentioned in the below snapshot.  Please guide me out. Thanks for

Re: [R] BoxPlot Adding Mean and Median Values

2018-05-09 Thread David L Carlson
r-help@r-project.org Subject: [R] BoxPlot Adding Mean and Median Values Dear Team - I would like to get your help on adding the values of mean and median of RTF as mentioned in the below snapshot.  Please guide me out. Thanks for your help in advance. ___

[R] BoxPlot Adding Mean and Median Values

2018-05-09 Thread Jayaganesh Anbuganapathy
Dear Team - I would like to get your help on adding the values of mean and median of RTF as mentioned in the below snapshot.  Please guide me out. Thanks for your help in advance. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Boxplot, formula interface, and labels.

2017-09-28 Thread David L Carlson
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 =

Re: [R] Boxplot, formula interface, and labels.

2017-09-28 Thread Ista Zahn
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

Re: [R] Boxplot, formula interface, and labels.

2017-09-28 Thread Ed Siefker
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

[R] Boxplot, formula interface, and labels.

2017-09-28 Thread Ed Siefker
I have data I'd like to plot using the formula interface to boxplot. I call boxplot like so: with(mydata, boxplot(count ~ geno * tissue)) I get a boxplot with x axis labels like "wt.kidney". I would like to change the '.' to a newline. Where is this separator configured? Thanks, -Ed _

Re: [R] Boxplot: Plot outliners in a different window

2015-09-28 Thread Jim Lemon
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

[R] Boxplot: Plot outliners in a different window

2015-09-28 Thread Tagmarie
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 know there is a way of drawing a second window on top of the boxplot which starts at a different y-axis-scales and inc

Re: [R] boxplot overlap beeswarm

2015-09-24 Thread MacQueen, Don
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

[R] boxplot overlap beeswarm

2015-09-24 Thread Julia89
Hi everybody, I'm new and i need help very fast. I will make a transparent boxplot overlap a beeswarm. I don't want to use ggplot2, i will use ggplot. Here is my own script but it doesn't worked. Maybe you can help me. Thanks in advance Julia require(beeswarm)#rohdaten boxplots rm(list=ls()) setw

Re: [R] Boxplot using a shapefile

2015-06-16 Thread Preethi Balaji
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

Re: [R] Boxplot using a shapefile

2015-06-16 Thread Roger Bivand
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

Re: [R] Boxplot using a shapefile

2015-06-15 Thread Boris Steipe
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

[R] Boxplot using a shapefile

2015-06-15 Thread Preethi Balaji
Dear all, I am trying to generate boxplots by giving a shapefile and an image as input. The shapefile takes the pixel values from the image and shows the distribution of pixels in the form of a boxplot. Can somebody please tell me how I can execute this in R? Many thanks! -- Regards, Preethi

Re: [R] Boxplot function error-help required

2015-06-13 Thread Kris Singh
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

Re: [R] Boxplot function error-help required

2015-06-11 Thread John Kane
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

Re: [R] Boxplot function error-help required

2015-06-11 Thread David Winsemius
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 --

Re: [R] Boxplot function error-help required

2015-06-11 Thread David Winsemius
co.nz/Reproducibility.html > for some suggestions on how to ask questions here. > > Good luck > > > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: kris.si...@research.uwa.edu.au >> Sent: Thu, 11 Jun 2015 19:20:46 +080

Re: [R] Boxplot function error-help required

2015-06-11 Thread MacQueen, Don
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

Re: [R] Boxplot function error-help required

2015-06-11 Thread John Kane
Canada > -Original Message- > From: kris.si...@research.uwa.edu.au > Sent: Thu, 11 Jun 2015 19:20:46 +0800 > To: r-help@r-project.org > Subject: [R] Boxplot function error-help required > > Dear Sirm/Madam, > > Just wondering if someone could help me. I've tried running a c

Re: [R] Boxplot function error-help required

2015-06-11 Thread Richard M. Heiberger
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

[R] Boxplot function error-help required

2015-06-11 Thread Kris Singh
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 the following error message: *Error: could not find function "Boxplot"* I have tried installing all the packages

Re: [R] boxplot axis font size

2014-05-25 Thread Rolf Turner
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)

[R] boxplot axis font size

2014-05-25 Thread Brian Smith
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) But this sets the font size to 0.5 for b

Re: [R] Boxplot colors

2014-05-22 Thread Shane Carey
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 > >

Re: [R] Boxplot colors

2014-05-22 Thread Richard M. Heiberger
## 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

[R] Boxplot colors

2014-05-22 Thread Shane Carey
Hi Im producing boxplots based on factors and rearranging them by median (This is for a Geochemistry element). Im giving each boxplot a unique color based on its level (factor) name. Im trying to produce a look up list to produce these colors as the order of the boxplots will change from element

Re: [R] boxplot with x-axis time

2014-03-14 Thread MacQueen, Don
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

[R] boxplot with x-axis time

2014-03-13 Thread giuseppe calamita
Dear R-users, I want to plot boxplots of a single variable collected a few times during almost one year and I would like the x-axis to recognize the date-class of the variable. I found some topics in the archive but: - some questions were poorly posed (http://r.789695.n4.nabble.com/Boxplot-with

Re: [R] BoxPlot basic help

2014-03-08 Thread Bert Gunter
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

Re: [R] BoxPlot basic help

2014-03-08 Thread arun
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,

Re: [R] Boxplot from statistics of original data

2013-09-26 Thread Jim Lemon
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

Re: [R] Boxplot from statistics of original data

2013-09-26 Thread Greg Snow
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

[R] Boxplot from statistics of original data

2013-09-26 Thread Rodrigo César da Silva
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 CENTRO UNIVERSITÁRIO LUTERANO DE MANAUS 58,5 57,5 0 98

Re: [R] boxplot with grouped variables

2013-05-11 Thread S Ellison
ns ( if V2 were correctly numeric) you could try boxplot(V2~V1+V3, data=Daten) S Ellison From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of maggy yan [kiot...@gmail.com] Sent: 11 May 2013 16:40 To: R-help@r-project.org Subject: [R

Re: [R] boxplot with grouped variables

2013-05-11 Thread Bert Gunter
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

Re: [R] boxplot with grouped variables

2013-05-11 Thread arun
quot;_"))) ggplot(dat2New,aes(x=combin,y=value))+geom_boxplot() #or ggplot(dat2New,aes(x=combin,y=value))+geom_boxplot()+facet_wrap(~V3,scales="free_x",ncol=2) A.K. - Original Message - From: maggy yan To: R-help@r-project.org Cc: Sent: Saturday, May 11, 2013 11:40 A

[R] boxplot with grouped variables

2013-05-11 Thread maggy yan
my dataset looked like this in the beginning: >Daten V1 V2 V3 1 Dosis Gewicht Geschlecht 2 06.62 m 3 06.65 m 4 05.78 m 5 05.63 m I need box plots for V2 with all combination of V1 and V3, so I deleted the

[R] Boxplot Labels solved

2013-04-10 Thread Beatriz González Domínguez
ea -Original Message- From: Jose Iparraguirre Sent: Wednesday, April 10, 2013 10:19 AM To: Beatriz González Domínguez ; r-help-ow...@r-project.org ; R Help 1 ; R Help 2 Subject: RE: [R] Boxplot Labels OK Beatriz, In this case, use the car package and run the following: bp <- Box

Re: [R] Boxplot Labels OK

2013-04-10 Thread Jose Iparraguirre
09 April 2013 17:32 To: r-help-ow...@r-project.org; R Help 1; R Help 2 Subject: [R] Boxplot Labels OK Dear all, I have just sent an enquiry but probably I hadn’t expressed myself properly. Could anyone help me with the following? When I run the code on my data I get a boxplot with outliers id

Re: [R] Boxplot Labels OK

2013-04-09 Thread Rui Barradas
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=

Re: [R] Boxplot Labels OK

2013-04-09 Thread Rui Barradas
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á

Re: [R] Boxplot Labels

2013-04-09 Thread David L Carlson
> 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

Re: [R] Boxplot Labels

2013-04-09 Thread Rui Barradas
nt 26 values potted? John Kane Kingston ON Canada -Original Message- From: aguitatie...@hotmail.com Sent: Tue, 9 Apr 2013 16:17:01 +0100 To: r-help-boun...@r-project.org, r-help@r-project.org Subject: [R] Boxplot Labels #Dear all, #Could anyone help me with the following? #DATA num <

[R] Boxplot Labels OK

2013-04-09 Thread Beatriz González Domínguez
Dear all, I have just sent an enquiry but probably I hadn’t expressed myself properly. Could anyone help me with the following? When I run the code on my data I get a boxplot with outliers identified by numbers 200 & 201. However, what I would like is to label these outliers with their corre

Re: [R] Boxplot Labels

2013-04-09 Thread John Kane
otted? John Kane Kingston ON Canada > -Original Message- > From: aguitatie...@hotmail.com > Sent: Tue, 9 Apr 2013 16:17:01 +0100 > To: r-help-boun...@r-project.org, r-help@r-project.org > Subject: [R] Boxplot Labels > > #Dear all, > > #Could anyone help me with th

Re: [R] Boxplot Labels

2013-04-09 Thread Jose Iparraguirre
| @ageukcampaigns -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Beatriz González Domínguez Sent: 09 April 2013 16:17 To: R Help; r-help@r-project.org Subject: [R] Boxplot Labels #Dear all, #Could anyone help me with the fo

[R] Boxplot Labels

2013-04-09 Thread Beatriz González Domínguez
#Dear all, #Could anyone help me with the following? #DATA num <- as.numeric(seq(100:125)) ave <- c(0.5, 1, 1.6, 2, 2, 2.3, 2.5, 2.4, 3, 3.2, 3.3, 4, 4.8, 3.5, 2.7, 3.1, 2.8, 3.5, 4.1, 2.0, 2.5, 2.1, 3.4, 2.5, 2.6, 7) DATA <- data.frame(cbind(num, ave)) rm(num, ave) #BOXPLOT x11() bp <- boxplot(

[R] Boxplot Labels

2013-04-09 Thread Beatriz González Domínguez
#Dear all, #Could anyone help me with the following? #DATA num <- as.numeric(seq(100:125)) ave <- c(0.5, 1, 1.6, 2, 2, 2.3, 2.5, 2.4, 3, 3.2, 3.3, 4, 4.8, 3.5, 2.7, 3.1, 2.8, 3.5, 4.1, 2.0, 2.5, 2.1, 3.4, 2.5, 2.6, 7) DATA <- data.frame(cbind(num, ave)) rm(num, ave) #BOXPLOT x11() bp <- boxplot(

Re: [R] boxplot

2013-03-24 Thread Janh Anni
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

Re: [R] boxplot

2013-03-24 Thread John Kane
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

Re: [R] boxplot

2013-03-23 Thread Janh Anni
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

Re: [R] boxplot

2013-03-22 Thread Robert Baer
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

Re: [R] boxplot

2013-03-22 Thread John Kane
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

Re: [R] boxplot

2013-03-22 Thread Janh Anni
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 > > > &

Re: [R] boxplot

2013-03-21 Thread David L Carlson
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

Re: [R] boxplot

2013-03-21 Thread Jim Lemon
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

[R] boxplot

2013-03-21 Thread carol white
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" #doesn't display the boxplot of only loc == "ni

Re: [R] boxplot

2013-03-14 Thread Marc Girondot
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

[R] boxplot

2013-03-14 Thread wei wu
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 24 6 712 33 43 53 how can I use boxplot function to plot it? thanks, William __ R-help@r-project.org mailing

Re: [R] boxplot with frequencies(counts)

2013-03-06 Thread Jim Lemon
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,

[R] boxplot with frequencies(counts)

2013-03-05 Thread km
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,3,4,5... by position position and pl

Re: [R] Boxplot Issues

2013-02-10 Thread John Kane
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 > > __

Re: [R] Boxplot in R

2012-11-16 Thread Rolf Turner
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

Re: [R] Boxplot in R

2012-11-16 Thread Marc Schwartz
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

[R] Boxplot in R

2012-11-16 Thread Elli
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 is the procedure used by R to per

Re: [R] boxplot of different colors

2012-09-26 Thread John Kane
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:

Re: [R] boxplot of different colors

2012-09-25 Thread Elaine Kuo
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

Re: [R] boxplot names italic

2012-09-25 Thread Jim Lemon
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

[R] boxplot names italic

2012-09-25 Thread Wolf Sarah
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,0.78,1.17,1.22,1.4) ran.text<-expression(it

Re: [R] boxplot of different colors

2012-09-24 Thread Richard M. Heiberger
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

[R] boxplot of multi box color

2012-09-24 Thread Elaine Kuo
Hello, I want to draw a boxplot using 13 colors for 13 boxes. Each box represents a type of diet of birds. Y axis is the breeding range of the birds. I checked the previous r-help and found a possible solution. However, it did not work by showing "error in ncol(Diet_B)," Diet_B not found. Please

Re: [R] boxplot of different colors

2012-09-24 Thread Elaine Kuo
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

Re: [R] boxplot of different colors

2012-09-24 Thread Elaine Kuo
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

Re: [R] boxplot of different colors

2012-09-24 Thread Richard M. Heiberger
## 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

Re: [R] boxplot of different colors

2012-09-24 Thread Sarah Goslee
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

[R] boxplot of different colors

2012-09-24 Thread Elaine Kuo
Hello, I am making a boxplot of 13 boxes. I tried to color the box using 13 colors but failed. Only red and brown were displayed. Green, blue, and grey disappeared. Please kindly advise modification after checking the code below. Thank you in advance. Elaine R code # data input dataN <-read

Re: [R] Boxplot lattice vs standard graphics

2012-09-17 Thread Massimo Bressan
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,

Re: [R] Boxplot lattice vs standard graphics

2012-09-17 Thread Rui Barradas
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

Re: [R] Boxplot lattice vs standard graphics

2012-09-17 Thread David Winsemius
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

Re: [R] Boxplot lattice vs standard graphics

2012-09-17 Thread maxbre
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

Re: [R] Boxplot lattice vs standard graphics

2012-09-17 Thread Massimo Bressan
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

  1   2   3   4   >