Displaying 20 results from an estimated 1000 matches similar to: "Dot chart question"
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
2008 Sep 25
5
Dot plot - equivalent of MINITAB
hi folks,
Bit of a newbie, but I've spent a fair bit of time looking for an answer on
this, with no joy. Can anyone help me?
Dataset: A single column of values in a csv file (eg. 52, 53, 54, 85, etc)
Goal: In Minitab, you have what they call a dot plot. It's a histogram,
where a single dot represents a set of identical values (eg. 57, 57, 57
would be one dot). Multiple dots are
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
2011 Jan 26
2
Varios dotplot en la misma grafica
Buenos dias a todos
quisiera meter dos o mas "dotplot" dentro de la misma gráfica. Lo intento con par(mfrow=c(2,2)), pero no me lo permite. Sí puedo hacerlo en cambio con los Boxplot.
Es posible hacerlo pero me falta algun detalle, o simplemente no se puede??
Muchas gracias
Jose Luis
[[alternative HTML version deleted]]
2006 Mar 26
2
Problem with names() in a plot after ordering a data.frame. Syntax or stupidity?
I am a complete newbie in R .
Using R 2.2.0 Windows XP
This started as a simple exercise to see if I could
produce a simple
Cleveland style dotchart with a line from the '2' axis
to the dot rather
than a continuous line as do "dotchart" and
"dotchart2". At least I could not
find that option.
I got a crude program to work but it includes
unnecessary steps.
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",
2009 Feb 09
2
Help on BarPlot
Dear all
As a new user of R, can someone please help me with the following
I have created a programme to analyse laboratory data and one of the graphs is a bar plot of 'Z' scores.
On the bar plot I am using the following line to plot some results
barplot (zb[,c("ZBW")], ylim = c(-6,6), names.arg=zb[,c("LabNo")],xlab="Lab Code Number", cex.names = .5 ,
2006 Sep 11
5
Successive Graphs
Hello! I have written an R script on a Windows platform where I
calculate eight result matrices I plot using matplot. I would like to
display the resulting plots successively, rather than simultaneously,
and I was wondering if anyone could point me in the right direction as
to how to do this. The graphs pop up in this manner by default when I
run my script in S-PLUS, with tabs separating them so I
2001 Jan 18
2
dotplot: character size of labels
Dear R users,
using dotplot (R1.2.0, WinNT4.0), I am trying to change the character size
of the labels of the points:
> # example
> data(VADeaths)
> dotplot(VADeaths, main = "Death Rates in Virginia - 1940")
> # I'd like to have smaller character size of the labels (for age and
population groups)
> ?dotplot
> # for argument "cex", this says:
2007 Nov 24
5
Dot plots in R
Dear All,
Can R produce dot plots like the one of the following picture:
http://en.wikipedia.org/wiki/Image:Dotplot_of_random_values.png
?
I have tried dotchart, but no success.
Thanks in advance,
Paul
2012 Oct 12
4
dotchart ordering problem
I'm having an sorting problem in dotchart. I want to change the order of the
BA in groups to AB, but I haven't found any solution yet. What should I do?
And what if I want to change the groups order as well? At the bottom from
Conrol up to 10 mg/L on the top. Thank you!
x = c(39, 23, 23, 35, 30, 26, 30, 30, 29, 29, 26, 29, 34, 33)
y = c("Control", "DMSO", "0,1
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
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,
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 =
2012 Oct 19
3
títulos inclinados
Estimados compañeros, estoy dando vueltas a cómo poner los nombres de
las provincias para que se sepa el valor que corresponde a cada una en
el siguiente código:
barplot(table(dg$prov), xlab="provincias", ylab="Frecuencia")
Recuerdo que hubo un mensaje en el foro sobre el parámetro srt=90 para
poner los títulos en vertical , pero no logro manejarlo.
Gracias,
Juan
--
2007 Jan 17
2
label option in 'barplot'?
Hello all,
When using the 'barplot' function, how would one go about creating
labels on the top of the bars corresponding to the actual frequency
values (i.e., the height of the bar). For histograms, one can use
the 'LABEL=T' parameter to this effect, but it is not available for
barplot. Must one manually create such labels for a barplot (perhaps
using mtext)?
Thanks.
2005 Nov 14
1
bug/feature with barplot?
I have found a bug/feature with barplot that at least to me shows
undesireable behaviour. When using barplot and plotting fewer
groups/levels/factors(I am unsure what they are called) than the number
of colors stated in a col statement, the colors wrap around such that
the colors are not fixed to one group. This is mostly problematic when
I make R figures using scripts, since I sometimes have
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
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)
@
2006 Dec 28
2
Plot window - save as Postscript question
R 2.4.0 for Windows
The following plot appears as a squared window (as all r-plots)
Not all subtitles are visible, but all subtitle will appear, when
changing the aspect ratio of the plot window with the mouse to a wide
format.
But does not work when using the save as postscript menu item from the
plot window.
is there any solution for that?
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1,