similar to: boxplot problem

Displaying 20 results from an estimated 60000 matches similar to: "boxplot problem"

2008 Jun 16
1
error in dat
Hello everyone, I have the following code which keeps giving me an error. The code is: dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\eisen.txt",header=T,row.names=1,blank.lines.skip=F,na..strings="NA") dimnames(dat)((1)) <-as.character(dat(,1)) dat<-dat(,-1) dat<-as.data.frame(dat) file.show(file="C:\\Documents and Settings\\Owner\\My
2009 Aug 20
2
boxplot with log="y" and values starting at 0
Hi, I'm working with a data.frame containing values between 0 and 22000. Most of the values are actually between 0 and 50 and the high ones are outliers. I want to generate a boxplot and since the outliers are extremely high, I need to scale the y scale logarithmically. Otherwise one wouldn't really see the boxes of the boxplot. boxplot(dat, log="y", ylim=c(0,
2008 May 09
7
histogram
Dear R-expert, For histogram function, can we get the table of bin and frequency like in excel, together with the histogram? Therefore, we can check the number of data included. Thank you so much for your attention and help. ____________________________________________________________________________________ [[elided Yahoo spam]]
2012 Oct 03
1
can't see colors with "col" in boxplot()
Hi, I am trying to color the data points on my boxplot but I only get the default black. Not sure why. Any ideas? Thank you, Mark Here is my code. > dat.g100 <- dat.sg[100,] # selected gene (row) from a dataframe of 37 columns > d1 <- as.matrix(dat.g100[,1:18]) # subset 1 > d2 <- as.matrix(dat.g100[,19:37]) # subset 2 # boxplots > par(mfrow=c(2,1)) > boxplot(d1,
2020 Mar 27
2
Expressions from boxplot() passed to bxp()
Hi, Is this expected behavior (R-3.6.0)? dat <- cbind(x = 1:10, y = 10:1) ylab <- substitute(X[t], list(t = 2)) plot(dat, ylab = ylab) # works (correctly displays ylab) boxplot(dat, ylab = ylab) # fails boxplot(dat, ylab = as.expression(ylab)) # works Thanks & cheers, M
2003 Nov 02
1
Boxplot with full x-range
Hi all, I'm new to R, and have the following problem: I wish to draw a boxplot of simple data in two columns. The x-axis (taken from first column) is grouped to intervals (using 'cut'). These intervals serve as x-value to the boxplot, and the data from the second column are the y-values. The problem is that I want to give an impression of the trend of the data in the x-range.
2009 May 27
2
boxplot
Hi gues,   Is there any function in R for boxplot with different time points? t1 <- c(rep(1,20),rep(2,20)) t2 <- c(rep(1,10),rep(2,10),rep(1,10),rep(2,10)) x <- rnorm(40,5,1) dat <- data.frame(t1,t2,x) boxplot(x~t1,t2) Many thanks, Amor [[alternative HTML version deleted]]
2010 Jan 06
1
boxplot help
Dear Rexperts, I am trying to add a '+' identifying the mean in a boxplot using the following sizelist <- split(size, grp) centers <- boxplot(sizelist, style.bxp = "att", medpch = "o", ylab = "Prostate Volume (cm3)") points(centers, unlist(lapply(sizelist, mean)), pch = "+") But, I get error Error in xy.coords(x, y) :
2009 Mar 29
1
a loop for boxplot graphs
Dear Colleagues   I have the following code that generates a boxplot for one specific labtest:   boxplot.n(LBSTRESN~COHORT, main="Boxplot of laboratory data for XLXXX-XXX test=Creatinine", subset = LBTEST=="Creatinine", xlab = "Cohort Number", ylab = "Units = umol/L", varwidth=TRUE   I would like to know if there is a way to loop through the dataset and
2003 Oct 15
3
Strange scope problem
Hi, I have come across the following problem which seems to be a scoping issue but I'm at a loss to see why this is so or to find a good workaround. Suppose I have a function to get a prediction after model selection using the step function. step.pred <- function(dat, x0) { fit.model <- step(lm(y~., data=dat), trace=F) predict(fit.model, x0, se.fit=T) } This function works
2009 Dec 02
2
lattice: adding information on number of observations
Dear R-users, I am using R version 2.9.1 and lattice 0.17-26 under windows. In a lattice boxplot, I would like to add information on how many observations each singel boxplot is based upon. For example (the basic plot): # Begin R-code library(lattice) dat <- data.frame(panvar = rep(c("A","B","A","B"), c(3,7,4,6)), grp = rep(c("grp1",
2012 Jul 12
4
Adjusting format of boxplot
Hi, I managed to use the attached data set and figure out the following: flies <- read.table("example12_1.dat",header=TRUE,sep="\t") boxplot(long ~ group, data = flies, horizontal = TRUE, col = "red") I'm very new to R and would like some help with the following: 1. Change the order on the y-axis from 1, 2, 3, 4, 5 to 5, 4, 3, 2, 1.
2008 Feb 29
3
Fitting long names in boxplot
I have the following code: subsetTimeDataPlot <- boxplot(subsetTimeData$time ~ subsetTimeData$build, horizontal=True, col="lightblue", ...) The 'names' component consists of strings that can be up to 20-30 characters long. How would I go about drawing the names vertically (not the boxplot) or shrinking the names text (I tried cex.names=0.7 but this didn't help).
2007 May 16
1
Problem with Sweave
I am using R 2.5 on a Linux Redhat platform. I can successfully run some example *.Rnw files through Sweave and generate pdf files. When I try my own example file, "test.Rnw": \documentclass[a4paper]{article} \title{Test Sweave Example} \author{Thomas Adams} \begin{document} \maketitle In this example we embed parts of the examples from the \texttt{boxplot} and \texttt{lattice}
2008 Jun 17
1
array elements incorrect
Hello everyone, I have a question as to what code should be used if one wanted to subset from a dataframe of 7000rows by 38 columns.For example if you wanted to generate a array of 100 by 38 would you not use the following: Z<-(dat,dim=c(100,38)) where dat is the dataframe of 7000by 38 Whenever I do this and type show(Z) I get a output of 100 by 38 they all say "integer,7000" as
2012 Jan 12
1
Add color to Boxplot by value
I have a boxplot of Production run rates per 10 minute intervals and I would like to color code them by the average (i.e. >15ppm = green, <9ppm = red, everything else yellow). Is there a way to do this? http://r.789695.n4.nabble.com/file/n4289381/RunRateBoxWhisker.png -- View this message in context: http://r.789695.n4.nabble.com/Add-color-to-Boxplot-by-value-tp4289381p4289381.html Sent
2011 Jul 02
1
Error when using plot in diag.panel argument of pairs
 Dear Madame or Sir,I am having a problem in combining density-smoothed scatterplot matrices with a plot of kernel destiny estimations of each dimension plotted on the respective field of the diagonal.I have tried following approach using the package "sm" for the kernel density estimation, as well as "MASS" respectively:pairs(myTable[, 1:4],panel=function(x,y, ...){
2008 Jul 08
1
Plot
Hello everyone, I am trying to plot an MvA plot with the following code: dat<-read.table(file="C:\\Documents and Settings\\.....txt",header=T) file.show(file="C:\\Documents and Settings\\Ow.......txt") library(sma) data(MouseArray) dat.o<-as.list(dat) dat.o$R.2<-as.matrix(dat[,c(1:5)]) dat.o$G.2<-as.matrix(dat[,c(6:10)]) dat.o$Gb.2<-as.matrix(dat[,c(11:15)])
2012 Jun 14
1
Help for boxplot
Hi guys, I am doing a project to evaluate the 7 individual fund performance from a portfolio compared with all fund performance utilizing the same strategy. Lets say in total there are 10 strategies and in the portfolio there exist 5 strategies. First, i use the BOXPLOT() and SUBSET() to produce the box plot of all the 5 funds performance individually: #identify funds in strategies within
2011 Jan 10
1
select data for boxplot
Dear list, havig the following matrix "Value" "Class" 13.00 1 12.80 1 11.78 1 11.70 2 11.61 2 11.95 2 11.55 2 12.40 3 11.40 1 12.27 1 12.49 3 11.39 4 11.80 4 12.39 3 12.72 3 12.18 3 11.64 3 11.50 4 12.81 4 11.31 4 11.95 2 12.65 2 11.66 2 12.19 3 12.84 1 11.90 1 11.11 4 12.75 4 how can I