Displaying 20 results from an estimated 1000 matches similar to: "3 boxplots in one"
2006 Jan 04
5
multiple lowess line in one plot
I'm using this code to plot a smoothed line. These two columns of data
really represent 4 groups and I'd like to plot a separate line for each
group but have them all in the same plot. The R-Docs for lowess do not
seem to indicate some type of "GROUPS=var_name" option. What would be
the syntax for this?
plot(AWGT ~ lipid )
lines(lowess(lipid , AWGT, f=.8))
--
Dean
2006 Jan 26
2
footnote in postscript lattice
I would like to add a footnote to this graph but do not see a "footnote" command in the package:lattice documentation. I would like to note the "span=.8"
as the footnote.
postscript(file= ?C:/Documents and Settings/dsonneborn/My Documents/Slovak/output/pcb_tables/smooth_PCB_lines_four.ps?, bg=?transparent?, onefile=FALSE, pointsize=20,paper=?letter?, horizontal=TRUE,
2006 Jan 11
1
4 smoothed lines on xyplot
I am using the R code listed below to create 4 smoothed lines on a
xyplot. I'm having trouble fine tuning it. First I think I may need a
black and white plot so how do I get it to plot the lines with different
characters, preferable the same characters used in the key (plus, X
circle and triangle). I might also be interest in a version that draws
four solid lines of different colors but
2006 May 17
1
boxplot
I am running this code to produce some boxplots. I have every thing that
I need except that I would like the whisker line to be solid line, not
dashes. I have reviewed the lattice docs but have not seemed to come
across this point.
print( bwplot( group ~ lpcb_tot, data= data7, xlab="Log PCB",
+ ylab=
+ " G B
+ S M S M
2005 Feb 10
1
skip missing values in plots
I really like these Trellis graphics but how do I get this code to
skip the missing?
logreg<-read.csv("logreg.csv", header=TRUE, sep=",", na.string=" ")
attach(logreg)
bwplot(yesno~bc_pcb_tot |varlist, data=logreg, main="Box Cox PCB
transformation", auto.key=TRUE, fontfamily = "HersheySans" )
Dean Sonneborn M.S.
Public Health Sciences *
2007 Apr 09
3
plot log scale, axis original scale
I want to produce some boxplots and plot the logged values but have the
axis scale in the original, not-logged scale. It seeming like I have the
first few steps but I'm having trouble with the last. Here's what I'm
doing (which I got for the documentation for boxplot and axis). How do I
get the ticks to be labeled 2,5, and 9 of the original scale?
a<-c(1,2,3,4,5,6,7,8,9,10)
2005 Feb 03
1
two issues
I'm working on a graphic but have run into a road block about two
issues. I don't have a color printer so I want to produce the graphic in
black and white. I'm currently using this
statement trellis.device(bg="white") but the body of the graphic contains
color. What is the code to create the whole thing in black and white. The
other issue might be a bit more tricky.
2005 Aug 11
2
scatter plot
I'd like to do a simple scatter plot but instead of using the variable
values on the X axis I would like to plot the percentiles. I searched in
the manual for percentiles but did not find what I was looking for. I've
been using SAS for several years but I new to R.
--
Dean Sonneborn
Programmer Analyst
Department of Public Health Sciences
University of California, Davis
(916) 734-6656
2004 Oct 18
2
x is not a open/high/low/close time series
I am trying to create a high low close style chart but I keep getting the
following error statement; "x is not a open/high/low/close time
series". I've used the function is.ts and R responds TRUE but the
ohlcPlot function gives the above error statement. I'm actually planning
to plot some odds ratios with their confidence intervals and the
hi-low-close chart should do the
2011 Sep 03
1
Lmer plot help
Hello all
I'm running the lme4 package on my binomial data, and I'm happy with the
model and the resultant plot. However, I'd like to plot my table data, which
has: two IVs, and one DV. You can see an example below, where 'attractive'
= question (IV), male = condition(IV/predictor) and no/yes = answer (dv).
I'm using the table to investigate what questions act differently
2005 Sep 28
1
gee models summary
I'm running some GEE models but when I request the summary(pcb.gee) all
I get are rows and rows of intercorelations and they fill up the screen
buffer so I can not even scroll back to see what else might be in the
summary. How do I get the summary function to NOT print the
intercorrelations?
Thanks,
--
Dean Sonneborn
Programmer Analyst
Department of Public Health Sciences
University of
2006 Mar 14
2
map question
Would anyone with experience with the map functions know how to divide
Czechoslovakia into the Czech Republic and Slovakia. They have been two
separate countries for some time now. I'm thinking about the worldhires
map database in particular.
--
Dean Sonneborn, MS
Programmer Analyst
Department of Public Health Sciences
University of California, Davis
(530) 754-9516
2006 Aug 29
1
subset by two variables
I'm using this syntax to create data subsets for plots:
subset=source=="Both". Now I would like to create a subset defined by
two different variables like this: subset=source=="Both"
subset=site=="home" but this syntax is not correct. The documents in the
manual for subset seem to be creating whole new data files not just
selecting rows based on the
2005 Sep 26
1
reading SAS data files
I am attempting to read in a SAS 9.1 data file. After starting R I
change to the directory containing the sas data file and use the "dir"
command to confirm that it is there. Then I run the following R-code:
library(foreign)
sashome <- "/Program Files/SAS/SAS 9.1"
test<-read.ssd(file.path(sashome), "pcb",
sascmd = file.path(sashome,
2008 Nov 11
1
thickness of boxplots
Hi R users:
How can I obtain with bwplot boxplots with bwplot whose box width
will vary acording to other variable.
bwplot(categ1~continuos|categ2,box.ratio=continuos2,data=data.base)
But it doesn't work as I expected.
Thank you for your help.
Kenneth
2005 Feb 03
0
two issues (black and white trellis graphics)
On the first issue, there's a recent post you can find in the archives.
It's from Deepayan Sarkar on January 2 this year. It would probably pop up
on a search for "black white lattice" or something similar.
The key part of his answer:
I'd do something like this as part of the initialization:
<<...>>
library(lattice)
ltheme <- canonical.theme(color = FALSE)
2010 Mar 01
3
help with lattice boxplots...
Hi All,
I need a small help with following code: I'm trying to convert "dashed
lines" to regular ones; and changing default "blue" border color to say
"black"... but I'm doing it wrong and its not working. Can anyone help
please. Thanks,
Code:
require(lattice)
ex <- data.frame(x=1:10, y=rep(c("A","B"), 5))
bwplot(y~x, data=ex,
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
2012 Sep 28
2
changing outlier shapes of boxplots using lattice
Hello
This is Elaine.
I am using package lattice to generate boxplots.
Using Richard's code, the display was almost perfect except the outlier
shape.
Based on the following code, the outliers are vertical lines.
However, I want the outliers to be empty circles.
Please kindly help how to modify the code to change the outlier shapes.
Thank you.
code
package (lattice)
dataN <-
2009 Jun 24
2
Boxplots: side-by-side
Dear R-sians..
I am trying to plot boxplots with side-by-side option.. I tried some of the
posted suggestions and could not make it work due to unequal sizes of
categories...
e.g.
weekly measured water depth values are categorized into 5 levels based on
their values
such measurement is again categorized into dichotomous levels - based on the
result of a test
I would like generate boxplot of