Displaying 20 results from an estimated 1000 matches similar to: "dotchart ordering problem"
2004 Feb 10
2
confidence-intervals in dotchart
My earlier posting should have said "dotchart", not "barchart".
1) How does one show confidence-intervals in a "dotchart" and use rownames
for labels on the y-axes? I have looked at "plotCI" in "gregmisc" package .
But it does not seem to produce something like a dotchart. The statistic,
error, upper-bound, and lower-bound are in a
2011 Feb 01
1
dotchart {graphics} 2.11.1 vs. 2.12.1
I have a factor vector of subject races (Asian, Black, Hispanic, White; n=30) that I want to plot with a Cleveland dotplot or dotchart.
I tried the following in R2.12.1 :
> dotchart(table(school$Race))
Error in plot.xy(xy.coords(x, y), type = type, ...) : invalid plot type
Using the same data set in R2.11.1 the operation succeeded (I tried several variations to be sure):
>
2006 Mar 13
2
dotchart: Gap between text and chart
I have some data which I would like to display with dotchart. The
labels are very long, so the chart becomes too small. Setting cex=0.7
seems to be a good compromise, but the gap between the text and the
chart still is too large. I did not find a "gap" parameter in the
description of dotchart...
Thanks for any help.
D. Trenkler
"a" <- structure(c(103.35, 36.73, 55.09,
2006 Mar 13
1
[R] dotchart: Gap between text and chart (PR#8681)
(Moved from r-help)
On 3/13/2006 9:33 AM, Dietrich Trenkler wrote:
> I have some data which I would like to display with dotchart. The
> labels are very long, so the chart becomes too small. Setting cex=0.7
> seems to be a good compromise, but the gap between the text and the
> chart still is too large. I did not find a "gap" parameter in the
> description of dotchart...
2012 May 09
5
Dotchart showing mean and median by group
Given this example
mean.values<-colMeans(VADeaths)
mean.values<-apply(VADeaths, 2, mean)
median.values<-apply(VADeaths, 2, median)
dotchart(VADeaths, gdata=mean.values)
dotchart(VADeaths, gdata=median.values)
is it possible to ?combine? a single dotchart showing both the mean and the
median for each single group (with different plotting symbols)?
?is it that possible with the use of
2011 Feb 01
1
dotchart {graphics} 2.11.1 vs. 2.12.1 [followed up from Rhelp]
Dear List,
With the R 2.12.0 addition of table methods for points(), dotchart()
struggles with tables. I found several possible solutions, but it is
beyond my skill to decide what is "best". Here is a small example:
#############################################
x <- table(infert$education)
y <- 1:3L
dotchart(x) # error about incorrect plot type
## moving closer to the cause,
2010 Dec 18
3
dotchart for matrix data
Readers,
I am trying to use the function dotchart. The data is:
> testdot
category values1 values2 values3 values4
1 a 10 27 56 709
2 b 4 46 47 208
3 c 5 17 18 109
4 d 6 50 49 308
The following error occurs
> dotchart(testdot,groups=testdot[,2])
Error in dotchart(testdot, labels =
2004 May 28
1
dotchart questions
I am trying to put 3 dotcharts side-by-side with minimal space between
each. Each chart is for a different variable, but the vertical axes are
the same.
I want to have vertical axis labels on the lefthand chart but no
vertical axis labels on the other two. Plus, I would like very little
space between charts 1 & 2 and between charts 2 & 3.
I have one approach but am not too happy with
2003 Sep 05
3
Dotchart question
Sorry to keep asking elementary questions......I appreciate the help.
I am trying to create a dotchart with the rows sorted according to the
values, rather than the labels. When I try
prof <- c('Accountant', 'Administrative assistant', 'Garment worker',
'Cook',
'Dentist', 'General practictioner', 'Graduate student', 'High level
2013 Jul 01
1
dotchart.R and left margin
Hello,
In trying to minimize the margin on the left hand side when using
dotchart I found what may be a typo in the code.
In the lines below from dotchart.R, should nmai[4L] be nmai[2L]?
if (!(is.null(labels) && is.null(glabels))) {
nmai <- par("mai")
nmai[2L] <- nmai[4L] + max(linch + goffset, ginch) + 0.1
par(mai = nmai)
}
Thank you,
Stephen Weigand
--
2008 Jun 04
1
dotchart
I am trying to plot the following data using dotchart
intersect.data<-structure(list(X = structure(c(1L, 3L, 8L, 9L, 10L, 11L, 12L,
13L, 14L, 15L, 2L, 4L, 5L, 6L, 7L), .Label = c("1-100", "1001-1100",
"101-200", "1101-1200", "1201-1300", "1301-1400", "1401-1500",
"201-300", "301-400", "401-500",
2011 Aug 17
2
dotchart vs. dotplot ... groups
I'm trying to create a dotplot with some grouping.
I've been able to create what I want using dotchart (basic graphics), but can't quite get it using dotplot (lattice). I prefer to use lattice (or ggplot2) because I think it's a bit easier to control some other aspects of the plot appearance.
Basically, w/ lattice I've not been able to get the y-axis label to include the
2009 Oct 15
2
How to right-align labels in dotchart
I have only just discovered the joys of the dotchart (since I am reading
William Cleveland's
--
Sean Carmody
The Stubborn Mule
http://www.stubbornmule.net
http://twitter.com/seancarmody
[[alternative HTML version deleted]]
2003 Sep 29
5
colours in dotchart (PR#4343)
Problem: neither fg or bg
nor color work properly in dotchart.
version: R-1.7.1 for windows
code which shows the errors:
x <-
matrix(rnorm(16),ncol=2,dimnames=list(paste("a",1:8,sep=""),c("before","afte
r")))
dotchart(x,fg="blue",bg="lightgrey")
dotchart(x,color=c("red","blue"))
Dr Ian J Wilson
Lecturer in
2009 Sep 23
1
dotchart to barplots
Hi,
I am trying to plot the following data so that it can be visually represented well. I tried the dotchart but I felt it was too spread out. Then I tried the barplot which is good enough for me. Is there a way to give the labels for the y-axis as in the dot chart? Also, I feel the grey level is confusing, so is there options for designs within the bars? I cannot use color as the journal wants
2006 Oct 08
2
Size problem with two dotcharts side by side
Dear all,
I'm trying to produce two dotcharts side-by-side within a Sweave
document. When I'm compiling this example:
\documentclass{article}
\begin{document}
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) dotchart(1:10)
@
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) hist(1:10)
@
2013 Apr 11
1
Dotchart per groups
Hi all,
I would like to ask you for help. I did a dotplot - using dotchart
function.
There are two localites (loc) with values 75 or 56 in my data ZZ.
The f column has 4 levels: P1, S1, S8, R6.
The dataframe is ordered by N value, pchloc value is assign to use "pch" in
plot.
> head(ZZ)
loc f N color ordered pchloc
98 75 S1 6.39 green 1 16
99 75 S8 6.44 blue
2009 Nov 06
1
how to combine the boxplot and dotchart together?
Hi all:
Suppose there're 3 groups,and I wanna compare the result of the 3 groups.
I've drawn a boxplot.But I wanna show the actural data points of each group at the same time.In other words I wanna combine the boxplot and dotchart together.
How can I do it?
Thanks a lot!
My best.
[[alternative HTML version deleted]]
2004 Jun 09
3
Dot chart question
Running R 1.8.1 on a Windows machine
In dotchart, I would like to shrink the labels on the tick marks (that
is, the numbers) without shrinking anything else. I could not find this
in either the Rhelp archives or in ?dotchart, which recmmends cex to
avoid 'label overlap', but cex shrinks all the characters in the plot.
Is there a way to do this?
Thanks
Peter
Peter L. Flom, PhD
2007 Oct 19
2
Order of Dotplot output
I'm just learning to work with R, and am having some difficulty controlling the output of my dotplot.
The default order of the function dotchart seems to be the largest value on the bottom and the smallest on the top. I wanted it in the opposite order (which is how my data frame is currently sorted), so I used the following approach, which works
orderidx <- order(b2000$RR)