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

2018-10-01 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

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

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,

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

[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

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

Re: [R] BoxPlot Adding Mean and Median Values

2018-05-09 Thread Jayaganesh Anbuganapathy
r-help-boun...@r-project.org> On Behalf Of Jayaganesh 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 me

Re: [R] BoxPlot Adding Mean and Median Values

2018-05-09 Thread David L Carlson
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 your help in a

[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,

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

2017-09-28 Thread David L Carlson
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 <ebs15...@gmail.com> Cc: r-help <r-help@r-project.org> Subject: Re: [R] Boxplot, formula interface, and labels. myb

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

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,

[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

[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

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

[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())

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

Re: [R] Boxplot using a shapefile

2015-06-16 Thread Roger Bivand
Boris Steipe boris.steipe at 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()

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 roger.biv...@nhh.no wrote: Boris Steipe boris.steipe at utoronto.ca writes: Your workflow in principle is: - read the

[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 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

Re: [R] Boxplot function error-help required

2015-06-13 Thread Kris Singh
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 the could not find function message, try like this: help.search('Boxplot

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 of

Re: [R] Boxplot function error-help required

2015-06-11 Thread John Kane
: 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 code on R and the code includes the following: Boxplot(~Acc_S$Acc, label=Acc_S$Subj) But I receive

Re: [R] Boxplot function error-help required

2015-06-11 Thread David Winsemius
: 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 code on R and the code includes the following: Boxplot(~Acc_S

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 John Kane
- 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 the could not find function message, try

[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 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 kris.si...@research.uwa.edu.au 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,

[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

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 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 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) ##

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 r...@temple.eduwrote: ## Shane, ## This uses your color_list. Your other variables weren't included in the email ## so I invented some data. ## I recommend bwplot() using

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

[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

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)  

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

[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 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

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

[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

Re: [R] boxplot with grouped variables

2013-05-11 Thread arun
(x=combin,y=value))+geom_boxplot()+facet_wrap(~V3,scales=free_x,ncol=2) A.K. - Original Message - From: maggy yan kiot...@gmail.com To: R-help@r-project.org Cc: Sent: Saturday, May 11, 2013 11:40 AM Subject: [R] boxplot with grouped variables my dataset looked like

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**

Re: [R] boxplot with grouped variables

2013-05-11 Thread S Ellison
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] boxplot with grouped variables my dataset looked

Re: [R] Boxplot Labels OK

2013-04-10 Thread Jose Iparraguirre
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 identified by numbers 200 201. However, what I would like

[R] Boxplot Labels solved

2013-04-10 Thread Beatriz González Domínguez
- 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 - Boxplot(DATA$ave, data= DATA, main

[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 -

[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 -

Re: [R] Boxplot Labels

2013-04-09 Thread Jose Iparraguirre
- 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 following? #DATA num - as.numeric(seq(100:125)) ave - c

Re: [R] Boxplot Labels

2013-04-09 Thread John Kane
-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 - as.numeric(seq(100:125)) ave - c(0.5, 1, 1.6, 2, 2

[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

Re: [R] Boxplot Labels

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

Re: [R] Boxplot Labels

2013-04-09 Thread David L Carlson
@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= dat1, main= Average Size, yaxt = n) text(1.1, , y = max(datDAT1$ave), label = 26, cex

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ález

Re: [R] Boxplot Labels OK

2013-04-09 Thread Rui Barradas
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= bp$out, labels= DATA$num

Re: [R] boxplot

2013-03-24 Thread John Kane
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 delayed response. Yes I am referring to the same type of data in the data sets. For example

Re: [R] boxplot

2013-03-24 Thread Janh Anni
...@inbox.com *Subject:* Re: [R] boxplot Hello John, I apologize for the delayed response. Yes I am referring to the same type of data in the data sets. For example, the arsenic concentrations in individual groundwater monitoring wells at a groundwater contaminated site, where one well may

Re: [R] boxplot

2013-03-23 Thread Janh Anni
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 unequal sample sizes and was wondering what would be the most efficient way to read in the data and plot side-by-side boxplots

Re: [R] boxplot

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

Re: [R] boxplot

2013-03-22 Thread John Kane
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 Subject: Re: [R] boxplot Hello All

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

[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 == nice. It

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 #doesn't

Re: [R] boxplot

2013-03-21 Thread David L Carlson
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 Subject: Re: [R] boxplot On 03/21/2013 07:40

[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

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

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

[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

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 __ R-help@r

[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

Re: [R] Boxplot in R

2012-11-16 Thread Marc Schwartz
On Nov 16, 2012, at 2:04 PM, Elli ellilti_...@hotmail.com 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

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 of different colors

2012-09-26 Thread John Kane
= 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: [R] boxplot of different colors ## I would do

[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)

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)

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

[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

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

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,

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 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

[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 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

Re: [R] Boxplot lattice vs standard graphics

2012-09-18 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 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

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

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 stats it

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-14 Thread Bert Gunter
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

[R] Boxplot lattice vs standard graphics

2012-09-14 Thread maxbre
Given my reproducible example test-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L), .Label = c(A,

Re: [R] boxplot - bclust

2012-09-04 Thread David Meyer
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] boxplot of hierachical cluster

2012-09-04 Thread Dominic Roye
Hello everybody, I would like to make boxplots for my hierachical cluster, but only i found a package that not works with the current version. http://acccn.net/cr569/Rstuff/Minka/mining/html/boxplot.hclust.html I hope you can help me. Thank you. Best regards, Dominic library(cluster)

[R] boxplot - bclust

2012-09-03 Thread Dominic Roye
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) 10(1) Computing Hierarchical Clustering

Re: [R] boxplot - bclust

2012-09-03 Thread Peter Ehlers
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)

[R] boxplot help

2012-08-15 Thread andyspeak
Hi, im a newbie with very wobbly coding abilities. Tearing my hair out over getting the boxplot i want... I have a dataset called 'eagle' which consists of year (2011 or 2012), month (jan - dec), roof (TT6, TT13 or BARE) and temp (the continuous variable that i want to plot). So i want boxplots

Re: [R] boxplot help

2012-08-15 Thread John Kane
-Original Message- From: freakyspe...@hotmail.com Sent: Wed, 15 Aug 2012 05:34:55 -0700 (PDT) To: r-help@r-project.org Subject: [R] boxplot help Hi, im a newbie with very wobbly coding abilities. Tearing my hair out over getting the boxplot i want... I have a dataset called 'eagle

Re: [R] boxplot help

2012-08-15 Thread Richard M. Heiberger
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

Re: [R] boxplot help

2012-08-15 Thread andyspeak
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,

  1   2   3   4   >