Displaying 20 results from an estimated 1000 matches similar to: "Color of CI bars in Hmisc::Dotplot()"
2008 Apr 16
0
Don't understand error-message (from lattice, I think)
> mypal <- trellis.par.get('superpose.line')$col[1:2]
> mycol <- mypal[1]
> trellis.par.set(list(dot.symbol = list(pch = 16, cex = 1.5)))
> dotplot(1:6 ~ audRating, data = txtA.ci,
+ scales = list(y = list(at = 1:6, labels = txtA.ci$pitchAud, col =
'black', cex = 1.1)),
+ ylab = '', aspect = 1.2, xlab = 'rated duration', ylim = c(0.5,
2011 Jul 27
1
color of error bars in Dotplot (Hmisc)
Hello!
In a grouped Dotplot, is there any way to set the color of error bars
to be the same as the corresponding symbols?
Example data:
require(lattice)
require(Hmisc)
data(barley)
Dotplot(variety~Cbind(yield, yield+2, yield-2)|year, groups=site,
data=barley)
I experimented with changing trellis settings of plot.line (as
mentioned in the Hmisc documentation) as well as col.line settings in
2006 Sep 16
2
dotplot/Dotplot: connecting points within factor level across time
For each level of the factor in dotplot, I have time points I'd like to
connect with a line. In the example below, 'x' represents a starting
time and 'd' a duration, and I wish to connect 'x' to 'x+d'. Ordinarily
I would use Dotplot from hmisc for this, but I have not been able to
find a time class that Dotplot will allow. I can get lattice dotplot to
put
2003 Jan 15
2
[lattice] lines for stripplot (like dotplot) or jitter for dotplot?
I'd like to use stripplot for some plots because I want to use
the jitter parameter. On the other hand, I'd like to use dotplot
because I'd like to have the horizontal lines that it includes.
dotplot doesn't have a jitter option and I'm not having any
success with getting panel.grid(h=-1) with stripplot. Can anyone
show me how to make dotplot-like lines on a stripplot? Or
2001 Jan 18
0
dotplot: character size of labels (PR#816)
There seems to be a bug in "dotplot" concerning the "cex" parameter. Setting
cex has no effect on the character size of the labels of the points.
This problem was posted to r-help today (Thu, 18 Jan 2001); the solution
given by Brian Ripley (and Uwe Ligges) seems to work for me.
Heinrich Rinner.
> version
_
platform i386-pc-mingw32
arch x86
2023 Nov 07
1
make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe
Handling NSE in these kinds of examples is a pain in lattice. I would
suggest using with() and dropping the data argument for simple examples,
e.g.,
dd |> mutate(new.proportion = las/total, new.bubble = total/100) |>
with(dotplot(agency ~ new.proportion, pch = 16, cex = new.bubble))
But if you care about multi-panel plots, you also need to be careful about
making sure that the
2023 Nov 07
1
make a lattice dotplot with symbol size proportional to a variable in the plotted dataframe
Hello. My question is in the subject line. Using R 4.1.3 on Windows 10.
Commented MWE below. Thanks.
--Chris Ryan
library(dplyr)
library(lattice)
## fabricate a dataframe
dd <- data.frame(agency = sample(LETTERS, size = 5),
total = sample(100:200, size = 5),
las = sample(20:40, size = 5))
dd <- dd %>% mutate(proportion = las/total, bubble = total/100)
## attempt to make a dotplot
2010 Feb 18
3
Can R make an usual dotplot
Dear R experts,
Can R make an usual dotplot just like Minitab and other softwares?
I have the following data, and can use dotchart to graph a dotplot:
y=c(2.873438152e-01, -8.732895642e-01,
4.579001889e-01, 1.047395204e+00,
8.491182299e-02 , -1.938007105e+00,
-1.273708343e+00, 9.848010588e-05,
7.238490734e-01, -1.490552717e+00)
dotchart(y, xlab="10 observations from
1998 Nov 29
1
Question about dotplot
Hello:
I am playing with the dotplot command (in preparation for
teaching an EDA course). I do not understand the following
behaviour of dotplot when x is a vector. These examples
have been tried on both Linux version 0.63 and guido's
Windows version 0.63 running under Windows 95.
I searched the bug reporting system, but found no mention
of any report concerning dotplot.
x <- 1:26
2009 Mar 03
1
dotplot() lattice charts return blank image (jpeg, bmp, png) file
Thanks in advance for the help. Trying to run a basic dotplot in lattice from R command line. When the file is created, in Fedora, it is blank image (jpeg, bmp, png). Image produces correctly in Windows environment. Libraries lattice and latticeExtra are loaded. Code:
-----------------
jpeg(file = "/tmp/img/temp31.jpg", width = 768, height=768)
xy <- dotplot(1:10)
print(xy)
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:
2009 Apr 18
1
dotplot in a loop
Hi all,
I'm a newbie R developer, am trying to dotplot a few graphs using a for
loop.
The following code works fine but once I wanna plot inside a loop, nothing
happens.
> for(i in 1:1){dotplot(y~x)}
> y <- c(1,2,3)
> x <- c('a','b','c')
> dotplot(y~x)
> for (i in 1:3) {dotplot(y~x)} (y and x depends on I in actual case)
Nothing happens.
I
2007 Jul 26
1
How to auto-scale cex of y-axis labels in lattice dotplot?
When I create a dotplot in lattice, I frequently observe overplotting
of the labels along the vertical axis. On my screen, this illustrates
overplotting of the letters:
windows()
reps=6
dat=data.frame(let=rep(letters,each=reps), grp=rep(1:reps, 26),
y=runif(26*reps))
dotplot(let~y|grp, dat)
Is there a way to automatically scale the labels so that they are not
over-plotted?
I currently do
2011 Feb 09
1
add mean and sd to dotplot in each panel using lattice
Hi,
I have a data frame like this:
ScoreDoseSex
2.81Dose1M
1.81Dose1M
1.22Dose1M
0.81Dose1M
0.49Dose1M
0.22Dose1M
0.00Dose1M
-0.19Dose1M
-0.17Dose1F
-0.32Dose1F
-0.46Dose1F
-0.58Dose1F
-0.70Dose1F
-0.81Dose1F
-0.91Dose1F
-1.00Dose1F
-1.77Dose2M
-1.85Dose2M
-1.93Dose2M
-2.00Dose2M
-2.07Dose2M
-2.14Dose2M
-2.20Dose2M
-2.26Dose2M
-2.32Dose2F
-2.38Dose2F
-2.17Dose2F
-2.49Dose2F
-2.54Dose2F
2009 Feb 19
2
dotplot points color
Dear list,
is it possible to change the background color of dotplot's points? I tried
in many ways but unsuccessfully
Thanks in advance
Gianandrea
require(lattice)
dotplot(variety ~ yield | site, data = barley, groups = year, pch=21)
dotplot(variety ~ yield | site, data = barley, groups = year, pch=21,
bg=c("2","3")) ??!!!
--
View this message in context:
2011 Apr 07
1
dotplot as a background for multiple barchart plots (with Lattice)
Hi R users,
I'm kind stuck in my R experience...
I want to have a multiple barchart with n windows, but with the same
background for each window, and I want that background to be a recorded
dotplot.
First, is it possible ?
If so, I guess I have to call a record plot in the panel function but how ?
As there is no panel.plot and I can't use the recorded plot as an
argument for the
2011 May 11
2
Dotplot (package Hmisc) with groups: colours and symbols
Hello all,
This question concerns the function Dotplot from the Hmisc package.
My aim is to compare values between groups in each panel of the
Dotplot, with the values of different groups clearly distinguishable
by different symbols. All lines and symbols should be coloured in
black.
Before adding the panel function to the Dotplot, the groups behaved as
desired and were marked by different
2008 Jun 16
2
Lattice: Superpose bwplot and dotplot [newbie question]
Hello everyone
I have dataset containing a monetary value (ABS) and two factors (Fct,
Group). I am able to create useful using:
bwplot(ABS~Group|Fct)
and
dotplot(ABS~Group|Fct)
Question: What do I have to do to overlay the dotplot with the bwplot (same
data set)?
I've found a couple of posts that hinted at the possibility of doing that,
and checked the panel.superpose() help, but the info
2008 Jun 11
1
Problem when combining dotplot() and textplot() using grid
Hi everyone.
I want to solve the following problem. I have a data.frame and I
create a dotplot using lattice.
Then I want to use the grid-package to create a combined graphic which
contains the dotplot as well as a textplot() (using package gplots) of
the data.frame next to the dotplot.
Example code:
library(lattice)
library(grid)
library(gplots)
xx <- data.frame(f=factor(rep(1:5, each=5)),
2002 Aug 05
1
Dotplot
Hello,
I am using Dotplot (from Frank Harrell's HMISC library) to make a graph of rates
with confidence intervals but I get a 'black' background -- nice but not on a
printed document:
>Dotplot(group~Cbind(rate,lower,upper)|mortality,data=mort,ylab=' ')
How do I change the background (and other) collors in Dotplot?
Thanks for you help.
Marwan Khawaja
platform