similar to: How to add a line on the boxplot

Displaying 20 results from an estimated 10000 matches similar to: "How to add a line on the boxplot"

2005 May 06
4
how to get such a subset of a matrix?
Hi everybody, Maybe this question is quite simple but i just don't know how to make it. I have a matrix a somewhat like this one but bigger: > a f g h i j k a NA NA 11 16 21 26 b NA NA 12 17 22 27 c NA 8 13 18 23 28 d NA 9 14 19 24 29 e NA 10 15 20 25 30 And i want to get the rows which at most have 2 Na. Thanks in advance. Shi Jiantao [[alternative HTML version deleted]]
2018 Sep 07
2
Construir matriz de distancias
Me encantaría saber pensar así de una. Creo que entiendo bien lo que me decís, pero no lo puedo poner en marcha en mi computadora, por algo que no sé qué será. Cuando llego a: > cosa<-aline(w1=x,w2=y) En RStudio me dice que R sufrió algo. Probé directamente desde la consola linux y también: > cosa<-aline(w1=x,w2=y) *** stack smashing detected ***: /usr/lib/R/bin/exec/R terminated
2006 Aug 07
2
Is there a function in R can help me to plot such a figure?
Hi, i want to plot figure like this, http://www.cis.hut.fi/projects/somtoolbox/download/pics2/shotvs2_colorcode.png So is there a function or package in R can help me to do this. Any suggestion will be appreciated. Thanks in advance Jiantao Shi [[alternative HTML version deleted]]
2018 Sep 07
2
Construir matriz de distancias
¡Buenas, listeros! Supongo que lo que planteo es muy básico, pero estoy trabado y no lo veo. Tengo una función que da la distancia lingüística ALINE, alineR::aline(), pero que no genera matrices. Tengo que hacer matrices de distancias ALINE de unos datos tipo esto: A cansado B cansadísimo C cansau D reventado E reventao F NA G canso alineR::aline("cansado", "cansado") # 0
2011 Feb 10
1
Add different types of legend: line and points
Hello, I plot box plot, and add a point to the box indicating mean. I also add some range to the box width. I want to add legend for both the range (line) and mean (point). However, I cannot add line legend and point legend together. The code looks like the following. (1) First, I tried the following code, however, it plot a line across the point legend("*"). boxplot(count ~ spray,
2010 Sep 29
2
boxplot
Hello, does somebody know in a boxplot, what does each element in the boxplot represent? 1. lines at the extremes of the dotted lines? 2. Extremes of the boxes 3. Black line in the middle of the box? 4. notches? Thank you Felipe Parra [[alternative HTML version deleted]]
2012 Sep 20
3
Line over Boxplot
Very much a rookie at R, and have only recently started using it again so pardon the simple question. I am trying to produce a box plot from one data set and then overlay a line plot from another data set. The box plot data set is made up of 20 sets of 30 data points, or 600 total data points. The line has only 30 total data points. The box plot is plotting fine, but for some reason, the line plot
2018 Jan 19
0
reading lisp file in R
Here are the beginning of a R program. I hope it can help you writing the rest of the program. Regards Martin M. S. Pedersen ---- filename <- "university.data" lines <- readLines(filename) first <- T for (ALine in lines) { ALine <- sub("^ +","",ALine) ALine <- sub(")","",ALine, fixed = T) if
2007 Jun 16
1
Lines connecting the boxes in a boxplot
Hello, I'm currently using a boxplot to visualize data for three different models. As I have three models, I'm plotting three parallel boxplots for each factor. This works fine - what I need now is a line connecting the medians of each boxplot of each model. I want to do this in order to visualize the trend that one of the models exhibit. Basically, I want to plot a curve for each model
2004 Apr 28
1
boxplot graphical arguments (PR#6832)
Dear r-bugs, I'd like to be able to draw boxplots with solid or dotted whisker lines. The lty argument is currently ignored by boxplot(), and indeed hardwired in bxp(). It's not very difficult to customize these functions to generate various types of boxplots, but generally it might be an idea to allow the user to pass a few more graphical arguments to boxplot(). The approach might as
2008 Sep 12
2
Again, about boxplot
Thank you for your guys reply for my previous question. But I got one more question about the boxplot. With the code in the R-help: boxplot(len ~ dose, data = ToothGrowth, boxwex = 0.25, at = 1:3 - 0.2, subset = supp == "VC", col = "yellow", main = "Guinea Pigs' Tooth Growth", xlab = "Vitamin C dose mg", ylab =
2011 Jul 26
5
Help with boxplot
Hi guys, I need your help with the boxplot. I've to create a boxplot starting from a table (.csv) in which there are the result of a test. Each column is a question and the rows are the answer of the respondents (from 0 to 5). Some answer is missing and has been filled with NA. the table has been loaded in R with the function read.csv I created the boxplot with the function boxplot and all
2013 Mar 21
2
Displaying median value over the horizontal(median)line in the boxplot
Hi, set.seed(45) test1<-data.frame(columnA=rnorm(7,45),columnB=rnorm(7,10)) #used an example probably similar to your actual data apply(test1,2,function(x) sprintf("%.1f",median(x))) #columnA columnB # "44.5"? "10.2" par(mfrow=c(1,2)) lapply(test1,function(x) {b<-
2006 Apr 28
2
How to get a grid behind a boxplot
I am using R 2.2.1 on a Windows 2000 PC. When I do a grid() after the boxplot it overprints the boxplot: > boxplot(count ~ spray, data = InsectSprays, col = "lightgray") > grid(nx=NA, ny=NULL) > if I try the panel.first > boxplot(count ~ spray, data = InsectSprays, col = "lightgray", + panel.first=grid(nx=NA, ny=NULL)) > I can see the grid flash
2007 Mar 27
2
line style outliers in boxplot
Dear Users Is there any way to generate lines instead of points for outliers in the boxplot function? Thanks AA. [[alternative HTML version deleted]]
2003 May 11
1
lines(aline, type = 'b', col = "blue) does not work for POSIXct plot.
Hello, x <- ISOdate(2003, 4, 1:30) # POSIXct vector y <-c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30) aline <- c(30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1) plot(x, y, xaxt = 'n', main = 'Number of Stuff for the Project, April 2003', xlab = 'Report Time', ylab = 'Number of
2010 Jan 02
2
Boxplot- input the median point and the median value
Dear, I am a newbie to R. Now I am learning to draw boxplot using graphics(). I want to highlight the median position with a round point and the value left (or on the top of)to the point. Please kindly share the command and thank you. Elaine [[alternative HTML version deleted]]
2004 May 03
1
boxplot.formula with missing values (PR#6846)
If an array has missing values in different rows, plotting using the formul= a=20 interface can produce errors. Example: fake.data <- matrix(rep(-100:100, 4), ncol =3D 4) par(mfrow =3D c(1,2)) boxplot(fake.data ~ col(fake.data)) abline(h =3D 0, lty =3D 2) boxplot(as.data.frame(fake.data)) abline(h =3D 0, lty =3D 2) ##### Add the missing data fake.data[190:200, 1] <-
2007 Jun 21
2
abline plots at wrong abscissae after boxplot
Hi folks, I'm using R 2.5.0 under ESS under Windows XP. (This also happens using the Rgui application.) I'm trying to add lines to a plot originally made with "boxplot", but the lines appear in the wrong place. Below is a script that illustrates the problem # boxablinetest.R - script to show problem with abline on box plot x <- c( 2, 2, 2, 3, 3, 3, 4, 4, 4) y
2004 Mar 10
3
Center labels on a boxplot
Suppose that I have data on three species for a variable and datasets from two time periods. I want to make a boxplot of the first dataset and then add the second using 'at = ' and 'add = T' as in the example for 'boxplot.' Since the boxes are paired by species, I want to do is have the x labels be centered between the boxes. I'm doing this now with mtext and entering