Displaying 20 results from an estimated 4000 matches similar to: "Adding different output to different lattice panels"
2010 Dec 01
2
Lattice dotplots
Dear,
I have a dataset with 4 subjects (see ID in example), and 4 treatment (see
TRT in example) which are tested on 2 locations and in 3 blocs. By using
Lattice dotplot, I made a graph that shows the raw data per location and
per bloc. In that graph, I would like to have a reference line per bloc
that refers to the first treatment (T1). However, I can not find how to do
that.
I can make
2013 Feb 15
3
lattice 3x3 plot: force common y-limits accross rows and align x-axes
Good afternoon,
I would like to ask for help in controlling y-axis limits and labels in
lattice doplots. Unfortunately, the problem is somewhat convoluted,
please bear with the long explanation.
I would like to create a 3x3 lattice of dotplots, say subject ~ count.
The plot is conditioned on variables treatment and risk: subject ~ count
| treatment + risk. In the experiment, not all subjects
2011 Oct 26
2
dotPlot with diagonal
Hi,
I want draw a dotPlot. All works fine:
(Seq <- matrix(c(1, 1, 6, 1, 2, 2, 5, 4, 3, 3, 4, 3,
4, 4, 3, 2, 5, 5, 2, 5, 6, 6, 1, 6), ncol = 6))
dotPlot(Seq[1,], Seq[2,], main = "Sequenz 1 und
Sequenz 2", asp = 1)
Is there a way to draw a small diagonal, begin at (0/0) to (6/6)
(perhaps in red??) or must I use gimp? I have many dotPlots, so it is
fine if R can do this.
Thanks Joerg
2010 Feb 22
1
tickmarks with time in dotplots
Hi,
I'm drawing lattice dotplots with time along the x-axis as in:
C <-data.frame(c("A", "B"),Sys.time()+ rnorm(50)*3600)
names(C) <- c("Name", "Time")
dotplot(Name ~ Time, data = C, horizontal = TRUE)
On my display, the x-axis shows tick marks every two hours. I would like to show something more frequent; at least every hour, possibly more
2011 Jan 18
1
dotplot line types and strip question
Hello,
I have one question regarding dotplots and one question about the strip
function in lattice. In the following function I wish to use two
different line types in a dotplot. Specifying lty =c(1,2) does not
work. No matter what line type is specified, solid lines are produced.
The other graphical parameters pch and col work, however. How can I
change the line types?
Regarding the
2004 Feb 12
2
lattice: showing panels for factor levels with no values
How to show panels for factor levels of conditioning variables
which do have no values?
E.g. there are panels for "Grand Rapids" when they have values:
data( barley )
with( barley, dotplot(variety ~ yield | year * site, layout=c(6,2) ) )
There are no panels for "Grand Rapids"
when there are no values for "Grand Rapids":
my.barley <- subset( barley, ! ( site ==
2004 Feb 10
2
Dotplot: y-labels from rownames
How can I use row.names() as y-labels in Dotplot? How to set horizontal
orientation for y-lables in lattice()?
Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og],
subset=statgh2[og]>0.1, data=h2inqerrg02st, xlab="G",
ylab=row.names(h2inqerrg02st)[og], main="")
I have tried doing it with mtext() as well, but there is not enough space
besides
2009 Dec 04
1
Lattice : Help with changing the labels of x-axis in respective panels
Dear R-Helpers,
I am not very experienced in using lattice and I am still in the learning
stage
I have a data set which looks like this: (I have deleted a few lines in
order to save space)
Chromosome marker Marker.Name Distance
1 1 1 PeMm261 0.0000
2 1 2 Xtxp8 10.1013
..
20 1 20 EbMi148 210.3099
21 1 21 Xtxp25
2009 Feb 23
1
simple graphing question
I have what should be a simple question but I've been unable to solve
it in a reasonable length of time. For example with data like
> ge
product response scenario
1 wine 5 base
2 steel 10 base
3 sugar 4 base
4 wine -10 policy
5 steel 1 policy
6 sugar -20 policy
(In reality there would be similar groups of data of
2012 Feb 12
2
dotplots with error bars
Does anyone have any recommendations for producing dotplots with error
bars? Are there packages available for this? I searched far and wide
and cannot find a suitable option.
I am trying to produce publication-quality figures for my thesis
results. Dotplots (Cleveland dotplots) are a much better form of
summarizing barchart-type data. It does not appear that any of the
main plotting packages in r
2004 Jan 20
1
lattice: adding text between grouped panels?
How one can add a text (e.g. the labels of an axis)
in a space between grouped panels which was created
by using the argument ``between''?
Example:
data(barley)
dotplot(variety ~ yield | site * year, data=barley,
between=list(x=c( 0, 0, 6 ))
How to add labels for the y axis in the space in the middle?
Thanks
Wolfram
2006 Jul 07
2
dotplot (lattice) with panel.segments and groups
Hi,
The following produces almost exactly what I needed. The problems are
that the 'panel.dotplot' call (commented) generates the error 'Error in
NextMethod("[") : argument "subscripts" is missing, with no default'. The
other problem is that the colors alternate between the levels of the 'site'
variable, rather than 'year'.
barley$yield2
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
2012 Mar 07
1
confidence intervals in dotplots in a for loop
# I have some population estimates and confidence intervals for various
size classes
# of animals captured with two gear types. I'd like to plot the
estimates along with
# the 90 and 95% CI's by size class for each gear type.
# The data can be read in as:
estimates <-
c(67.42,30.49,32.95,23.53,10.26,6.03,23.53,0.93,50.72,24.2,25.84,18.54,
2018 Apr 27
1
[FORGED] Extracting specified pages from a lattice ("trellis") object.
Hi
Does this not do what you want ... ?
allpages <- dotplot(variety ~ yield | year * site, data=barley,
layout=c(2,2))
page2 <- allpages[1:2, 3:4]
print(page2)
Paul
On 24/04/18 17:51, Rolf Turner wrote:
>
> On 24/04/18 15:17, Paul Murrell wrote:
>
>> Hi
>>
>> I think the subsetting works by giving you the panels for the
>>
2018 Apr 24
0
[FORGED] Extracting specified pages from a lattice ("trellis") object.
On 24/04/18 15:17, Paul Murrell wrote:
> Hi
>
> I think the subsetting works by giving you the panels for the
> corresponding levels of the conditioning variable(s).? Note that, if
> there is more than one conditioning variable, you will need more than
> one subsetting index.
>
> For example, taking this plot with two conditioning variables and 12
> panels in
2007 Apr 24
1
specify xlim for each panel
I draw dotplot using the following code:
sd.dotplot<-dotplot(data.47.nmr$om_sd ~ as.factor(data.47.nmr$position)
|as.factor(data.47.nmr$pr), data = data.47.nmr,layout=c(1,1),
xlab="Position", xlim=range(data.47.nmr$position),ylab="Sd", main="Changes
of omega angle in different positions",
scales = list(x = list(rot = 45)))
However I get same xlim for each
2004 Sep 09
2
Skipping panels in Lattice
Dear all,
I wish to generate a lattice boxplot which skips an empty cell in a design.
I have trawled r-help, scruitinized xyplot(lattice) help page, and merrily
reproduced examples of using skip from a couple of previous r-help queries
and the example given in Pinheiro & Bates. But I must be missing something...
Here's an example (running R 1.9.1 on Win2k):
# generate some data
df1
2005 Jun 08
1
Bounding or constraining parameters in non-linear regressions
Dear R-Users,
Being an engineer and not a statistician, my desired course of action may
either be impossible or very simple.
I am attempting to fit a non-linear model to some measured data. One term in
the model contains a square-root, but in the course of regression, this term
turns negative and an error occurs. I started using Micrsoft's Excel Solver,
and then I turned to NIST's
2018 Apr 24
2
[FORGED] Extracting specified pages from a lattice ("trellis") object.
Hi
I think the subsetting works by giving you the panels for the
corresponding levels of the conditioning variable(s). Note that, if
there is more than one conditioning variable, you will need more than
one subsetting index.
For example, taking this plot with two conditioning variables and 12
panels in total ...
dotplot(variety ~ yield | year * site, data=barley)
... this produces three