Displaying 20 results from an estimated 3000 matches similar to: "Change the color and lines of the legend using bwplot"
2008 Apr 01
1
set the lower bound of normal distribution to 0 ?
Tom Cohen <tom.cohen78@yahoo.se> skrev: Thanks Prof Brian for your suggestion.
I should know that for right-skewed data,
one should generate the samples from a lognormal.
My problem is that x and y are two instruments that were thought to
be measured the same thing but somehow show a wide confidence interval
of the difference between the two intruments.This may be true that
these
2012 May 03
1
bwplot: using a numeric variable to position boxplots
[Env: R 2.14.2 / Win Xp]
In the examples below, I'm using lattice::bwplot to plot boxplots of 4
variables, grouped by a factor 'epoch'
which also corresponds to a numeric year. I'd like to modify the plots
to position the boxplots according to
the numeric value of year, but I can't figure out how to do this.
Also, I'd to modify the strip labels that give the variable
2002 Jul 15
0
Incompleteness in Lattice documentation (was Re: lattice question: adding slopes to bwplot)
On Mon, 15 Jul 2002 08:39:05 +0100, Paul Hewson <PHewson at devon.gov.uk> wrote regarding "RE: [R]
lattice question: adding slopes to bwplot"
Hi,
Thanks. It made sense indeed: enough to discover the panel.linejoin function which does what I was looking for.
<error here>
I also understand now why I didn't find this, and associated, routine:
2013 May 03
1
print multiple plots to jpeg, one lattice and one ggplot2
hello everybody,
I want to print two plots in one png file, I tried several options but i
didn't succeed
the first plot (bwplot) print to the defined position, but the second
(ggplot) doesn't
Any idea?
Thanks a lot
Christophe
# Example:
#-------------------------------------
library(ggplot2)
library(lattice)
library(grid)
one <- bwplot(decrease ~ treatment, OrchardSprays, groups
2005 Sep 23
1
panel.linejoin groups
Dear R community,
I am still new to R, but I am attempting to use it for (hopefully) all
my plotting needs. I have been using lattice and Hmisc for most plots
so far successfully, but I need help creating a plot I desire for some
new data I have.
This data frame consists of the same type of measurement (Eh) for 27
different locations. I have 8000+ measurements for each location, and
my
2008 Mar 31
1
Reorder the x-axis using lattice
Dear list,
Is there a way to reorder the xaxis using lattice. Using the following data, the x-axis is ordered as BP GH MH PF RE RP SF VT but I would like the x-axis to be ordered as PF RP BP GH VT SF RE MH.
Kön Skalor Tillfälle Medelvärde
1 Kvinnor BP 1-inskrivning 36.45283
2 Kvinnor GH 1-inskrivning 38.62255
3 Kvinnor MH 1-inskrivning 62.88889
4
2007 Jan 02
1
lattice panel.linejoin type question
Hello R Users!
I'm trying to use the panel.linejoin function to draw points and lines
(type="o") but it wouldn't do it. Modifying the panel.linejoin function
as such (adding type argument to the panel.lines call).
*original*
panel.lines(vals[xx], yy, col = col.line, lty = lty,
lwd = lwd, ...)
*modified
panel.lines(vals[xx], yy, col = col.line, lty
2004 Sep 17
2
lattice: bwplot and panel.lmline()
On Friday 17 September 2004 13:52, RenE J.V. Bertin wrote:
> Hello again,
>
> I am doing regressions (using panel.lmline() (and panel.abline(
> rlm(...))) ) inside a panel method which I pass to bwplot().
>
> What I would like to do is create a boxplot of categorised data
> (binned on the independent variable), and superpose a regression line
> which is calculated using the
2009 Apr 17
0
Margins in lattice and device resolution
Hi all,
I believe I've run into this before, but I seem to have totally
forgotten. No headway in the last couple of hours either. How do I
make sure that points and margins remain the same absolute size as I
change
the resolution of a device?
(I'm running 2.9.1 patched, on a Win XP-machine)
Many thanks in advance,
Gustaf
Ps: As an afterthought, might it be that this behaviour is
2005 Apr 27
2
lattice plot problem!
Hello everybody,
Could I consult you two questions?
Recently I write some code about lattice plot.
1) bwplot function
I know the lattice default background color is grey and the box color is green, but I don't like the color. So I change the background color to white use the
> trellis.device(bg="white")
then I modify the
> panel=function(...)
+{
+
2006 Jun 01
3
Key titles in Lattice
Hi,
I'm creating some lattice plots that have a key and I'd like to put a
label on the key. The problem is that the text label for the key
prevents the values of the group variables from being shown (see example
below). I don't think that this is a feature, but I might be abusing the
title arg for key.
I'm using R Version 2.3.0 (2006-04-24) on Windows XP and lattice V0.13-8
2008 Feb 12
3
help with bwplot
Dear list,
I have following data set, which I want to plot the "Scale" variable on the
x-axis and "Mean"´on the y-axis for each Ageclass and for each sex. The Mean
value of each Ageclass for each sex would be connected by a line. Totally,
there should be 6 lines, from which three present the Mean values of each
Ageclass for respective sex. Are there any easy ways to do
2007 Mar 20
1
lattice key (legend) with both points and lines
Hello,
I'm running into a frustrating problem with the legend on a lattice
plot I'm working with. The plot is a stripplot with a panel.linejoin
() line running through the mean of each of the categories. Thus
there are both points and lines in the plot.
In trying to make a key for the plot, I can't figure out how to make
a legend for both the points and the lines. What I'd
2012 Aug 22
1
Controlling line-join style in Lattice
R users,
I am creating a series of scatterplots with Lattice's xyplot(). Some of the plotting symbols are squares with thick borders. The corners of the squares are rounded by default; I would like them to be square. In base graphics this is easily done with par(ljoin = "mitre"), and in grid graphics with gpar(linejoin = "mitre"). Is there an analogous parameter in
2008 Feb 19
1
Two bwplots in one single graph
Dear list,
With the below codes, I got 8 bwplots but I would like to put 2 bwplots in one single graph so that instead of 8 separate bwplots I would have 4 graphs, each contains 2 bwplots. How can I do that?
Another question is how do I add the mean as a point to each boxplot in the bwplot but also keeping the median line.
for (i in 1:length(dat)){
windows()
with(dat[[i]],
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 16
1
Lattice: Superpose bwplot on 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
2010 Sep 27
1
bwplot superpose panel.points from another dataframe
Hi everybody,
using bwplot for producing panel boxplot with 3 dimensions
i want to add a mark on each boxplot representing one individual (on all its
dimensions)
till now, i didn't succeed getting the desired solution
I want as well to keep the median symbols as a line
Many thanks for your help
christophe
here is the tested code:
########################
library(lattice)
ex <-
2009 Oct 03
1
Problem using with panel.average in Lattice package
Hi,
I'm having a problem getting the panel.average function to work as I
expect it to in a lattice plot. I wish to draw lines between the
averages of groups of y-values at specific x-values. I have created a
dataset below which is similar to my real data. I also show an example
of using panel.loess in place of panel.average; it performs in a
manner similar to what I want panel.average to do
2011 Aug 20
1
Groups and bwplot
Dear R-users,
A while ago, Deepayan Sarkar suggested some code that uses the group
argument in bwplot to create some 'side-by-side' boxplots
(https://stat.ethz.ch/pipermail/r-help/2010-February/230065.html). The
example he gave was relatively specific and I wanted to generalize his
approach into a function. Unfortunately, I seem to have some issues
passing the correct arguments to the