similar to: plot ignores type= "n" when x is factor (PR#13703)

Displaying 20 results from an estimated 20000 matches similar to: "plot ignores type= "n" when x is factor (PR#13703)"

2005 Sep 24
5
plot, spineplot, boxplot in R 2.2.0
I noticed, what seened to me, to be odd. These produce a boxplot in the first case and a spineplot in the second case in R .2.2.0: plot(Sepal.Length ~ Species, iris) plot(Species ~ Sepal.Length, iris) What if one wants to exchange axes? Does the fact that this seemingly innocuous change result in completely different graphics make sense? Is it desirable?
2017 Jan 27
4
Suggestion: barplot function
Hello developers folks! First, congratulations for the wonderful work with R. For science, barplots with error bars are very important. We were wondering that is so easy to use the boxplot function: boxplot(Spores~treatment, col=treatment_colors) But there is no such function for barplots with standard deviation or standard error. It becomes a "journey" to plot a simple graph (e.g.
2005 Feb 18
3
Barplot - Can't figure it out
Hi, I have two catagorical vectors like this; x = c(1, 2, 4, 2, 1) y = c(2, 4, 2 ,4, 1) I want to set up a barplot with the catagories 1-4 horizontally and number of occurances vertically for each vector x,y. I've tried boxplot(table(x,y), beside=T) and boxplot(c(x,y), beside=T) among others, but can't get it to work...Any ideas? I'd apppreciate any help
2006 Oct 13
3
Need help with barplots
I`ve read all the manuals and still couln`t find what is the difference between the stacked and side-by-side barplots ? Could you explain me ? [[alternative HTML version deleted]]
2012 Feb 03
2
Having trouble controlling plot() output (e.g., color)
I expect that there's something glaringly obvious that I'm overlooking, as I'm justr getting back involved in using R after a several-month hiatus (from R). So I welcome clues. When I invoke plot(), merely specifying a data.frame with 2 columns, specify the plot type ("type") of "p" ("points"), and that I want the point to be green ('col =
2009 Oct 14
1
default borders in boxplot and barplot
This is my first post so hopefully I haven't mucked up the rules. I'm trying to change the default borders in either boxplot or barplot so that, at the request of a journal, all of my figures have the same type of border. I've successfully used par(bty="o") using plot(1:10, bty="o"), but it seems that barplot and boxplot have their own defaults that override
2009 Jun 04
1
'beside' option for boxplots
Is there any way to get a boxplot of several data sets beside one another on the same graph, as there is for barplot? If I do: d1 <- data.frame(a = c(rep(1:3, each = 3)), b = c(1:9)) d2 <- data.frame(a = c(rep(1:3, each = 3)), b = c(9:1)) boxplot(d1$b ~ d1$a) boxplot(d2$b ~ d2$a, add=T) It will show the two datasets on the one graph, but the middle point will overlap. What I want is
2005 Apr 20
2
Label / Tick under single Boxplot
Hi! I am trying to get the tick / label under a stacked boxplot with only a single data row. With >=2 rows it works, but with a single one the tick resp. my class name is not printed below the boxplot. Can anybody point me to what am I doing wrong? For example: boxplot(data.frame(c(3,4,5)),names=list("a"),beside=F) Here, I would like to have the "a" below the single
2012 Jul 10
2
how can I show the xlab and ylab information while using layout
hi R-users: I want to draw three plot into one figure by layout and the script has been shown below. But I find R does not show the xlab and ylab information completely as shown the figure attached. How can I midify the script.? thank you . xxlab<-paste(cpmd," (",ro,"%)",sep=" ") yylab<-paste(rfmd," (",co,"%)",sep=" ")
2003 Dec 18
3
diagnostic information in glm. How about N of missing observations?
I handed out some results from glm() and the students ask "how many observations were dropped due to missing values"? How would I know? In other stat programs, the results will typically include N and the number dropped because of missings. Without going back to R and fiddling about to find the total number of rows in the dataframe, there is no way to tell. Somewhat
2004 Aug 13
3
Question from Newbie on PostScript and Multiple Plots
Hi, As I'm pretty new to R I hope this question isn't too basic. I am currently looping through my dataset and for each iteration am producing three separate plots. When I output these plots to the screen they are nicely grouped as three plots per page, however, when I try to send it to a PostScript file I get one page for each plot. I have adjusted my postscript options so that my
2009 Mar 21
5
Plot and Boxplot in the same graph
Hii, Is it possible, to use the plot() funktion and the boxplot() funktion together ? I will plot a simple graph and additionally to the graph on certain places boxplots. I have imagined to plot the graph a little bit transparency and show in the same graph on certain places boxplots.... Is it possible to do it in this way ? greetings, johnh -- View this message in context:
2012 Apr 21
1
Barplot problem
Hello, I have little experience with r, so I wonder if someone could help me? I need to plot a diversity measure (Fisher`s alpha) for different sites. I calculated the values using the following commands: Data(BCI) alphaBCI <- fisher.alpha(BCI) I need boxplots showing the data variation between sites. Then I tried: boxplot(as.data.frame(alphaBCI)) However, it does not appear the box plots
2004 May 21
2
bars with sd
I need some help for a curious question of a friend of mine. She usually does some experiments (3-5 repeats for each exp) and then she calculates mean and standard deviation. In microsoft excel she writes something like the following sample mean sd a 1.25 0.35 b 2.65 0.65 c 3.45 0.50 She can do a vertical barplot graph just giving mean value and specifying the
2003 Dec 06
1
pdf() function, screen command and graphs
Dear [R]-list, I am trying to do a pdf() of the following graphs but don't understand why the pdf() function does produce an empty pdf file. (I use R1.7.0 on MacOS 10.2.8) any idea? Is pdf() incompatible with screen? Thanks a lot, DLC ## create dataset x=rnorm(1000,10,2) y=rpois(1000,5) ## graphs pdf() par(col.main=4,omi=c(0,0,1.25,0)) split.screen(c(1,2))
2013 Mar 17
1
How make a boxplot with Y axis in percentage
I have to make a boxplot with Years 2011 and 2012 on the x axis, and percentage of full time students (=1) and part time students (=2) on the y axis. I would really appreciate if someone can help me to build a proper code. Thanks Larissa Data as follow: Year Q1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 2 2011 1 2011 1 2011 1 2011 1 2011 1
2012 Jan 31
1
Currency symbols in Xtick or Ytick labels
How do you label Xtick and Ytick marks with Currency symbols: $2000 instead of 2000? I would like to add dollar symbols to tickmarks on boxplots, histograms and back-to-back histograms. My Examples (requiring the lattice and Hmisc packages): data(case0102, package="Sleuth2") str(case0102) boxplot(Salary~Sex, case0102) histogram(~ Salary | Sex, data=case0102) require(Hmisc) #
2011 Mar 09
1
Boxplot problem
Dear R-user, I'm facing problem to draw boxplot. I can draw my boxplot but the space option is not working for me. I've no clues where i'm doing wrong my data is as matrix as shown below:         [,1] [,2] [1,]   98  60 [2,]   96  70 [3,]   95  80 and i'm plotting as barplot(height=c(data[1,],data[2,],data[3,]),       beside=TRUE,           space=c(.1,1),          
2008 Jun 24
2
spineplot (graphics package): how to control font size?
I cannot modify the font size of the standard text items for the splineplot function found in the standard graphics package. Here is a tiny example, in which I try (but fail) to make the main title large. tbl = read.table ('http://www.ggobi.org/book/data/tips.csv', sep=',', header=T) spineplot (table (tbl$DAY, tbl$SEX), main='TIPS', cex.main=3) None of
2003 Jan 17
2
barplot plotting problem
Hi, Is there any equivalent of type="n" when constructing barplots which will still construct the axes (plot=F, as it says doesn' plot anything at all). Alternatively I tried setting col="white" and border="white" but the border command does not seem to be operational. True?? Any other ideas? What I'm actually trying to do is construct vertical abline()'s