On 6/18/08, Jim Price <[EMAIL PROTECTED]> wrote:
>
> I've recently been playing with strip functions for a data presentation I'd
> like to use, and have a couple questions. I've cannibalised the
> useOuterStrips function from latticeExtra to give me the following sample
> code:
>
>
>
> library
On 6/20/08, Henning Wildhagen <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> i am trying to plot a continous variable y against a "date" variable, both
> in one dataframe named "df", using a code like this
>
> library(lattice)
> plot1<-xyplot(y~date, data=df, type="b")
>
> "date" is of class "Da
On 6/22/08, Bryan Hanson <[EMAIL PROTECTED]> wrote:
> Thanks Gabor, I'm getting closer.
>
> Is there a way to spread out resp values vertically for a given value of
> index? In base graphics, stripchart does this with method = "stack". But
> in lattice, stack = TRUE does something rather diffe
On 6/23/08, Pedro Mardones <[EMAIL PROTECTED]> wrote:
> Dear all;
> I have a data set with 3 groups and 2 response variables, say z1 and
> z2, and I would like to create a single plot (using the levelplot
> function) showing on the first row the leveplots for z1 for each group
> and on the seco
On 6/23/08, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
> Set the various plotting parameters in par.settings= in which
> case both the legend and the plot itself will be taken from there.
> See for example:
>
> http://finzi.psych.upenn.edu/R/Rhelp02a/archive/90432.html
>
> where superpose.li
On 6/24/08, Bryan Hanson <[EMAIL PROTECTED]> wrote:
> If anyone remains interested, the solution in base graphics is to modify
> stripchart.default, the last couple of lines where the coloring of points
> defaults in a way that depends on groups. In my example, the groups are
> being handled co
On 6/24/08, Douglas Bates <[EMAIL PROTECTED]> wrote:
> I am indebted to Deepayan Sarkar for lattice graphics, Fritz Leisch
> for Sweave and the authors of the beamer package for LaTeX. For me
> these are a "killer app" combination. I wouldn't want to go back to
&g
On 6/25/08, Franz Mueter <[EMAIL PROTECTED]> wrote:
> As for your first problem, try:
>
> xyplot(numbers~breaks|moltype, groups = type, data = alldata, type = "l")
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Karin Lagesen
> Sent: Wednesda
On 6/26/08, David Afshartous <[EMAIL PROTECTED]> wrote:
>
>
> All,
>
> I have data across 5 time points that I am graphing via xyplot, along with
> error bars. For one of the variables I have missing data for two of the
> time points. The code below is okay but I can't seem to get the lines t
On 6/30/08, Troy S <[EMAIL PROTECTED]> wrote:
> r-friends--
>
> I am trying to make a lattice plot with a single label at 0.05. A reference
> line at y=0.05 as well... This is what I have so far. The label reads 0.0
> and there is a grid instead of a single reference line. Can someone help
On 7/1/08, Sam Albers <[EMAIL PROTECTED]> wrote:
> I have constructed a Trellis style xyplot.
>
> lengthf <- factor(length)
> xyplot(SLI$velocity ~ SLI$width | SLI$lengthf, layout = c(2,7), xlab =
> "Width (cm)", ylab = "Velocity (m/s^2)", col = "black")
As an aside, the recommended incantation
On 7/1/08, Michael Hopkins <[EMAIL PROTECTED]> wrote:
>
>
> Hi R people
>
> I am using a function to create a pdf device, then send a lot of plots
> to it in a loop then a last lattice xyplot (itself within a function)
> outside the loop and finally call dev.off() to write to the file.
> This
On 7/2/08, Karin Lagesen <[EMAIL PROTECTED]> wrote:
>
>
> I have a data matrix like this:
>
>
> > data[1:10,]
>aaname grp cluster count
> 1 Ala All Singleton 432
> 2 Arg All Singleton 1239
> 3 Asn All Singleton 396
> 4 Asp All Singleton 152
> 5 Cys All Single
On 7/2/08, David Afshartous <[EMAIL PROTECTED]> wrote:
>
>
> All,
>
> I can't seem to get auto.key to work properly in an xyplot that is employing
> panel.text. Specifically, I often change the default grouping colors then
> use auto.key accordingly, but for some reason the same functionality
On 7/3/08, Vitalie Spinu <[EMAIL PROTECTED]> wrote:
> Dear UseRs!
>
> I am really amazed by lattice capabilities but one thing is really beyond
> my understanding.
> I would like to have conditional plots with points inside each panel
> colored by groups "gr1" and "pched" by "gr2":
>
> xyplot(A~
On 7/9/08, David Afshartous <[EMAIL PROTECTED]> wrote:
>
>
> All,
>
> I'm plotting points and lines for various groups.
> I'd like subsequent plots done on subsets to maintain the color assignments
> from the original plot. This works fine, but the key for the subset doesn't
> maintain the co
On 7/9/08, David Afshartous <[EMAIL PROTECTED]> wrote:
>
>
>
> On 7/9/08 1:07 PM, "Deepayan Sarkar" <[EMAIL PROTECTED]> wrote:
>
> > On 7/9/08, David Afshartous <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> All,
&g
On 7/10/08, Mike Lawrence <[EMAIL PROTECTED]> wrote:
> As I understand it, Duncan MacKay's solution involves simply pasting the
> factors together, as in:
>
> |_AX_|_AY_|_BX_|_BY_|
>
> Which isn't quite as aesthetically pleasing as what I I'm looking for:
>
> |___A___|___B___|
> |_X_|_Y_|_X_|_Y
On 7/16/08, Henning Wildhagen <[EMAIL PROTECTED]> wrote:
> Dear R users,
>
> i am using the following code to produce barcharts with lattice:
>
> Compound<-c("Glutamine", "Arginine", "Glutamate", "Glycine", "Serine",
> "Glucose", "Fructose", "Raffinose",
> "Glycerol", "Galacglycerol", "Threitol
On 7/20/08, Bryan Hanson <[EMAIL PROTECTED]> wrote:
> Hi All...
>
> I can¹t seem to find an answer to this in the help pages, archives, or
> Deepayan¹s Lattice Book.
>
> I want to do a Lattice plot, and then update it, possibly more than once,
> depending upon some logical options. Code below;
On 7/21/08, John Smith <[EMAIL PROTECTED]> wrote:
> Dear R Users:
>
> I have a list function as:
> Flat: y = 0
> Linear: y = -(1.65/8)d
> Logistic: y = 0.015 - 1.73/{1+exp[1.2(4-d)]}
> Umbrella: y= -(1.65/3)d + (1.65/36)d^2
> Emax: y = -1.81d/(0.79+d)
> Sigmoid Emax: y = -1.70d^5/(4^5+d^5)
eepayan
>
> Thanks
>
>
>
> On Tue, Jul 22, 2008 at 1:08 PM, Deepayan Sarkar <[EMAIL PROTECTED]>
> wrote:
>
>
> > On 7/21/08, John Smith <[EMAIL PROTECTED]> wrote:
> > > Dear R Users:
> > >
> > > I have a list f
On Sun, Jul 27, 2008 at 1:41 AM, Oliver M. Haynold
<[EMAIL PROTECTED]> wrote:
> On Sun, 27 Jul 2008 05:00:48 +, Oliver M. Haynold wrote:
>> I am using wireframe from the lattice package, with the shade option set
>> to TRUE. When I output to PDF or Postscript, a line gets drawn around
>> each
On Wed, Jul 30, 2008 at 6:41 AM, G. Draisma <[EMAIL PROTECTED]> wrote:
> L.S.,
> With the code below,
> on the Windows screen the line types in the key show
> as solid and dashed as in the graph,
> and in the pdf file they show
> as solid in the key and solid and dashed in the graph.
> I would no
On Thu, Jul 31, 2008 at 1:30 PM, GOUACHE David
<[EMAIL PROTECTED]> wrote:
> R-helpers,
>
> I'm having difficulty with customizing strip names for a lattice graphic.
>
> Here is an example using the iris data set :
>
> xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris)
>
> ## I'd
On Thu, Jul 31, 2008 at 12:54 PM, GOUACHE David
<[EMAIL PROTECTED]> wrote:
> Hello R-helpers,
>
> I would like to produce a boxplot for dates, using lattice.
>
> Here is a dummy example :
>
> dates<-as.Date(32768:32895,origin="1900-01-01")
> plouf<-data.frame(days=dates,group=factor(rep(1:2,times=1
On Mon, Aug 4, 2008 at 3:36 AM, Gabor Grothendieck
<[EMAIL PROTECTED]> wrote:
> Checkout this one:
>
> http://finzi.psych.upenn.edu/R/Rhelp02a/archive/82452.html
And there's a wrapper for this in the latticeExtra package:
library(latticeExtra)
useOuterStrips(xyplot(data=df, copies~week|Treatment+
On Mon, Aug 4, 2008 at 8:44 AM, Mark Difford <[EMAIL PROTECTED]> wrote:
>
> Hi Michael,
>
>>> Pulling my hair out here trying to get something very simple to work. ...
>
> I can't quite see what you are trying to do [and I am not sure that you
> clearly state it], but you could make things easier a
On Mon, Aug 4, 2008 at 1:39 PM, John Smith <[EMAIL PROTECTED]> wrote:
> I have another questions. How can I type specific names into strips of the
> resulting plot?
>
> For instance, in the resulting figure from the attached code, instead of
> 'umbrella(d)', I want have 'UMBRELLA' in the strip.
>
>
On 8/5/08, Henning Wildhagen <[EMAIL PROTECTED]> wrote:
>
> Dear Deepayan,
>
> thanks for the hint with the wrapper in latticeExtra, it is very convenient
> and the plot looks fine. Just from intuition i think that it would look even
> nicer if the strips at the left side appear at the right site
On 8/5/08, Chuck Cleland <[EMAIL PROTECTED]> wrote:
> On 8/5/2008 8:37 AM, Chosid, David (FWE) wrote:
>
> > I'm trying to use fine axis controls in lattice for each panel.
> > Specifically, within each panel, I want to set the limits for x and y
> > equal to each other since it is paired data (usin
On Tue, Aug 5, 2008 at 11:15 AM, John Poulsen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I apologize in advance as this example seems really elementary. Below I
> have created a simple scatterplot with lines. I would like to label each
> line with the name of the village, instead of using a legend.
On Tue, Aug 5, 2008 at 1:53 AM, Karin Lagesen <[EMAIL PROTECTED]> wrote:
>
>
> I have a problem regarding the colors assigned to the lines in the key
> to an xy plot. I specify the plot like this:
>
> xyplot(numbers~sqrt(breaks)|moltype+disttype, groups = type, data = alldata,
> layout = c(3,2
On Thu, Aug 7, 2008 at 11:54 AM, baptiste auguie <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> This is a very basic question about lattice: I wish to add some vertical
> lines in each panel of a xyplot as demonstrated in this example:
>
>> library(lattice)
>>
>> xx <- seq(1, 10, length=100)
>> x <- rep
On Thu, Aug 7, 2008 at 7:55 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote:
> Dear List,
>
> I am writing a custom panel function and xyplot method to plot the
> results of a procrustes analysis from the vegan package.
>
> I am having trouble getting the call to panel.arrows to work as I wish
> when c
On Fri, Aug 8, 2008 at 7:40 AM, Andrewjohnclose <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> I am trying to set a specific bandwidth for a bivariate kernel density
> estimation and then plot it in lattice: managed all that except that the
> plot appears to have an issue regards the setting of the p
On Fri, Aug 8, 2008 at 2:38 PM, Rainer Hurling <[EMAIL PROTECTED]> wrote:
> Dear community,
>
> I am looking for a possibility to draw 'regression lines' instead of
> 'smooth' lines in grouped xyplots. The following code should give you a
> small example of the data structure.
>
>
> library(lattice
On Sun, Aug 17, 2008 at 2:36 AM, Dieter Menne
<[EMAIL PROTECTED]> wrote:
> Michael Braun MIT.EDU> writes:
>
>>
>> Dieter:
>>
>> Thank you for your response. As you requested, I created a self-
>> running example, pasted below. It may be a little wordier than I
>> would like, but it runs.
>
> ..
On Fri, Aug 22, 2008 at 11:28 AM, Todd Hatfield <[EMAIL PROTECTED]> wrote:
> I would like to control the inner margins of a lattice graph. The graph is
> a single superposed panel, but there is too much white space around the data
> for my liking. I've played around with some of the layout option
On Mon, Aug 25, 2008 at 1:51 PM, Mario <[EMAIL PROTECTED]> wrote:
> No, no, no. I have solved the Monty Hall problem and the Girl's problem and
> this is quite different. Imagine this, I get the envelope and I open it and
> it has £A (A=10 or any other amount it doesn't matter), a third friend gets
On Mon, Aug 25, 2008 at 4:47 AM, baptiste auguie <[EMAIL PROTECTED]> wrote:
> Dear all,
>
>
> I'm routinely using lattice and ggplot2, I wish to create a lattice theme
> that looks not too dissimilar to ggplot's defaults so I can include both
> graphs in a document with a consistent look.
>
> To il
On Tue, Aug 26, 2008 at 2:26 PM, Alex Karner <[EMAIL PROTECTED]> wrote:
> R Friends,
>
> I'm running R2.7.1 on Windows XP.
>
> I'm trying to get some lattice functionality which I have not seen
> previously documented--I'd like to plot the exact same data in multiple
> panels but changing the group
On Tue, Aug 26, 2008 at 6:56 PM, Alex Karner <[EMAIL PROTECTED]> wrote:
> Thanks Deepayan, works like a charm.
>
> A followup question though--I'd like to produce the same data on four
> panels with the final two "zoomed in", i.e. plotted with shorter x and
> y axes. Since I can't access panel.numb
On Thu, Aug 28, 2008 at 3:07 AM, Giovanni Tarquinio
<[EMAIL PROTECTED]> wrote:
> Hello,
> I'm Giovanni from ROMA..
>
> I can't find a solution for the error:
>
> "error using packet 1
> the y field is not specified and it has not a default value"
> (this is my traslation from italian language)
>
>
On Thu, Aug 28, 2008 at 1:07 PM, Aaron Mackey <[EMAIL PROTECTED]> wrote:
> Witness this oddity (to me):
>
>> rainbow_hcl(10)[1]
> [1] "#E18E9E"
>> d <- attributes(hex2RGB(rainbow_hcl(10)))$coords[1,]
>> rgb(d[1], d[2], d[3])
> [1] "#C54D5F"
>
> What happened? FYI, this came up as I'm trying to reu
On Thu, Aug 28, 2008 at 1:21 PM, Dylan Beaudette
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there any way to suppress plotting of panels that don't actually contain
> any information? I have tried using 'drop.unused.levels=TRUE', but there
> doesn't seem to be any effect. Here is an example:
>
> libra
On 9/1/08, Jason Pare <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am having trouble adding symbols to grid graphics. I am able to
> create a lattice scatterplot using xyplot, which has a range from
> -15:15 in both the X and Y directions. However, when I try to add
> circles and text to this grap
On Tue, Sep 2, 2008 at 6:24 AM, Andreas Krause <[EMAIL PROTECTED]> wrote:
>
> When I create a lattice/Trellis type graph, I typically write a function that
> returns the graph, as in
> do.graph <- function(x, y, ...)
> {
>require(lattice)
>return(xyplot(y~x, ...))
> }
>
> My question tod
On Tue, Sep 2, 2008 at 1:23 PM, Martin Brown <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm new to R and lattice and panel functions. I've produced a lattice
> graph using xyplot. Now I would like to add various, and *different*,
> annotations to each individual panel. I tried something like this,
On 9/2/08, Steven McKinney <[EMAIL PROTECTED]> wrote:
>
>
> This is close, but maybe not optimal lattice coding.
> I haven't yet figured out how to suppress the x axis
> labeling.
>
> bwplot(yield ~ 1|year, panel = function(x, y, ...){panel.bwplot(x, y, ...,
> pch = "|"); panel.points(x, mean(
On Tue, Sep 2, 2008 at 11:43 PM, Andreas Krause <[EMAIL PROTECTED]> wrote:
> Deepayan,
>
> that is exactly what I was hoping for. Thanks much!
>
> Experimenting with it I noticed that updating two existing objects with plot
> arguments seems to not work, at least not in this way:
>
> gr1 <-xyplot(
On 9/13/08, June Kim <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a multivariate data with a single Y variable and 9 X variables.
> I tried drawing a parallel coordinates with the data set without a
> problem, using lattice library. However, I want to do some brushing on
> the graph. For exam
On 9/15/08, Waichler, Scott R <[EMAIL PROTECTED]> wrote:
> When I use panel.contourplot() with filled color regions, the coloring
> follows the stair-step edge of the underlying grid instead the smooth
> contour lines themselves. How can I get the latter behavior? I would
> guess there is a mu
m a screen
device, that should work fine.
-Deepayan
>
> Regards,
> David
>
>
>
> Deepayan Sarkar wrote:
>>
>> On 9/15/08, Waichler, Scott R <[EMAIL PROTECTED]> wrote:
>>> When I use panel.contourplot() with filled color regions, the coloring
>>&g
On Wed, Sep 17, 2008 at 1:25 PM, Deepayan Sarkar
<[EMAIL PROTECTED]> wrote:
> On Wed, Sep 17, 2008 at 1:12 PM, David Carslaw
> <[EMAIL PROTECTED]> wrote:
>>
>> I think this is a very useful function that I imagine has wide appeal -
>> thanks. Using the code b
On 9/18/08, David Scott <[EMAIL PROTECTED]> wrote:
>
> I have a data set concerning ferritin levels in blood. There are three
> relevant columns for this question, ferritin (continuous), score (ordered,
> from 0 to 8) and gender. There is a good linear relationship between
> log(ferritin) and scor
On Thu, Sep 18, 2008 at 10:23 AM, Waichler, Scott R
<[EMAIL PROTECTED]> wrote:
> Thank you very much, Deepayan. There is just one more feature I'd like
> to get, the ability to add the contour lines. My revision to your code
> below prints too many lines. What needs to be changed?
>
> --Thanks,
On Thu, Sep 18, 2008 at 10:20 AM, Sebastian Weirich <[EMAIL PROTECTED]> wrote:
> Hello,
>
> probable a simple question, but I'm unaware with it. When plotting something
> like levelplot(z1+z1~x*y|g), each table has a subtitle containing variable
> name of z1 respectively z2 and the value of g. Ho
On Thu, Sep 18, 2008 at 1:36 PM, Waichler, Scott R
<[EMAIL PROTECTED]> wrote:
>> > Thank you very much, Deepayan. There is just one more feature I'd
>> > like to get, the ability to add the contour lines. My revision to
>> > your code below prints too many lines. What needs to be changed?
>
>> Y
On 9/18/08, Saptarshi Guha <[EMAIL PROTECTED]> wrote:
> Hello,
> My plot has two curves on different scales. To create the scale on
> the extreme right hand side of a panel
> I followed the example in panel.axis (in this example, the tick marks
> are at the same location and labels are t
On 9/23/08, Pascal A. Niklaus <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am trying to produce some panels with dots in an X/Y plane where the
> diameter of the dots indicates a Z value (like e.g. earthquake maps where dot
> sizes indicate magnitudes and X/Y the location).
>
> This works fine wi
On Sun, Sep 21, 2008 at 2:11 AM, Hofert Marius <[EMAIL PROTECTED]> wrote:
> Dear R-experts,
>
> I have found a splom-modification online which is given below. This works
> perfectly, but I would like to have a matrix of given correlation values to
> be used in the lower triangular part (lower.panel
On Wed, Sep 24, 2008 at 10:15 AM, stephen sefick <[EMAIL PROTECTED]> wrote:
> I would like to use the data below where the plots are close to what I
> want. Instead of color I would like to use different symbols, and
> have the symbols in the legend match the graphs. I am also going to
See ?simp
panel.xyplot(...)
pn <- packet.number()
if (pn == 1) panel.abline(lm(GPP~I(1/Iron), data=f))
else if (pn == 2) panel.abline(lm(GPP~I(1/TSS), data=f))
else panel.abline(lm(GPP~I(TIN.TP), data=f))
}
-Deepayan
> On Wed, Sep 24, 2008 at 2:56 PM, Deepaya
On 9/24/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello!
> I have data containing a large number of probabilities (about 60) of
> nonzero coefficients to predict 10 different independent variables (in 10
> different BMA models). i've arranged these probabilities in a matrix like
> so:
>
>
On Thu, Sep 25, 2008 at 7:33 AM, John Fox <[EMAIL PROTECTED]> wrote:
> Dear list members,
>
> I'd like to be able to restrict the number of pages in a lattice display to
> one without having to specify explicity the number of rows and columns in
> the display -- that is, having forced one page, I'd
On 10/2/08, Michael Just <[EMAIL PROTECTED]> wrote:
> Dieter and Thierry:
>
> Per you suggestions I have tried:
>
> ggplot2 from Thierry:
>
> > p <- ggplot(dat, aes(x=bbContag, y=..density..)) + geom_histogram()
>
> > p + facet_grid(. ~ sc_recov %in% c(21,31,41))
>
> But get the followinng error
On 10/3/08, hadley wickham <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 3, 2008 at 8:04 AM, eugen pircalabelu
> <[EMAIL PROTECTED]> wrote:
> > Hi List,
> >
> >
> > I have the following problem: I am using the multilevel package and
> make.univ function for available in the package and then xyplot
On 10/4/08, Desany, Brian <[EMAIL PROTECTED]> wrote:
> For a non-log-scaled y-axis, I was able to change the appearance of the
> y tick labels in an xyplot by using a custom function for
> yscale.components. However I couldn't get that approach to work for when
> scales=list(y=list(log=TRUE)).
>
On 10/5/08, Saptarshi Guha <[EMAIL PROTECTED]> wrote:
> Hello,
> I have a shingle A and B. A has 5 levels and B has 4 levels.
> Also, I have 8
> levels of a factor C. I wish to xyplot( x ~ y | C *A *B,data=data),
>
> I think this is how the lattice conditioning works:
> If i'm not
On Mon, Oct 6, 2008 at 10:37 AM, Saptarshi Guha
<[EMAIL PROTECTED]> wrote:
> Hello,
> My plots consist of 2 rows, 1 column, many pages
> I've managed to selectively turn of strips for the bottom panel and
> roll my own strip for the top
>
> par.strip.text = list(lines = c(0,3),cex=0.6)
>
> I have
On Tue, Oct 7, 2008 at 8:54 AM, baptiste auguie <[EMAIL PROTECTED]> wrote:
> Dear list,
>
>
> I've been trying this for a few hours and I just don't understand how
> lattice works with groups and subscripts.
>
> Consider the following example,
>
>
>
>> xx <- seq(1, 10, length=100)
>> x <- rep(xx, 4
On 10/7/08, Rolf Turner <[EMAIL PROTECTED]> wrote:
>
> I am trying to do a histogram lattice plot and I would like the
> histogram to be filled with a different colour in each panel.
>
> Note: I want every bar in each histogram to be the same colour,
> but that there should be different colour
On Wed, Oct 8, 2008 at 3:41 PM, Alex Karner <[EMAIL PROTECTED]> wrote:
> R friends,
>
> I'm running R 2.7.2 on Windows XP SP2.
>
> I have some data that's amenable to smoothing, and some that's not. I'm
> trying to plot smoothed lines for the former along with just points for the
> latter in a sing
On Wed, Oct 8, 2008 at 12:15 PM, Rolf Turner <[EMAIL PROTECTED]> wrote:
>
> On 8/10/2008, at 5:16 PM, Deepayan Sarkar wrote:
>
>> On 10/7/08, Rolf Turner <[EMAIL PROTECTED]> wrote:
>>>
>>> I am trying to do a histogram lattice plot and I would like the
On Wed, Oct 8, 2008 at 1:56 PM, Michael Just <[EMAIL PROTECTED]> wrote:
> Hello, this code below was from a helpful R-help user.
>
> dat <- read.csv("Resid_fix2.csv", sep="," , header=T)
> dat11 <- dat[1:413,]
> # convert ambiguous columns to factors:
> dat11$Pri_No <- factor(dat11$Pri_No)
> dat11
On Thu, Oct 9, 2008 at 8:59 AM, Todd Remund <[EMAIL PROTECTED]> wrote:
>
> I'm trying to create a 3D plot using wireframe with certain parts removed. I
> would like to get rid of the part of the outer cube that crosses over the
> plot leaving the back two walls and the axes. It would also be us
On Nov 20, 2007 11:14 AM, David Afshartous <[EMAIL PROTECTED]> wrote:
>
> All,
>
> I'm trying to make a basic plot: data points superimposed upon the a line
> connecting the points w/ a different color. Example below doesn't work as
> the first xyplot call doesn't remain. Suggestions?
xyplot(y ~
On 11/20/07, Dylan Beaudette <[EMAIL PROTECTED]> wrote:
> On Tuesday 20 November 2007, Deepayan Sarkar wrote:
> > On Nov 20, 2007 11:14 AM, David Afshartous <[EMAIL PROTECTED]>
> wrote:
> > > All,
> > >
> > > I'm trying to mak
On 11/20/07, Dylan Beaudette <[EMAIL PROTECTED]> wrote:
[...]
> Example:
> library(lattice)
>
> # generate some data:
> resp <- rnorm(100)
> pred <- resp*1.5 + rnorm(100)
> d <- data.frame(resp=resp, pred=pred)
>
> # add a grouping factor:
> d$grp <- gl(4, 25, labels=letters[1:4])
>
> # plot: loo
On 11/20/07, Dylan Beaudette <[EMAIL PROTECTED]> wrote:
> On Tuesday 20 November 2007, Deepayan Sarkar wrote:
> > On 11/20/07, Dylan Beaudette <[EMAIL PROTECTED]> wrote:
> >
> > [...]
> >
> > > Example:
> > > library(lattice)
> > &g
On 11/24/07, Paul Smith <[EMAIL PROTECTED]> wrote:
> 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.
Try ?stripchart
-Deepayan
___
On 11/27/07, Paul Smith <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> According to the Sturges rule, the number of classes of a histogram is
> the closest integer to
>
> 1 + logb(n,base=2)
>
> where n is the number of observations. The function hist(), by
> default, uses the Sturges rule. However, the
On 11/29/07, David Afshartous <[EMAIL PROTECTED]> wrote:
>
>
> All,
>
> The code below produces a color 3D graph. I'd like to make it black and
> white shading. I tried setting col.regions to FALSE but this just made it
> completely white. I want the graph to look exactly as is, except black (or
On 11/30/07, Uwe Ligges <[EMAIL PROTECTED]> wrote:
>
>
> Tom La Bone wrote:
> > IMHO "The R Book" is far better than indicated in that review and should be
> > near the top of the list for beginners looking for a "manual" for R.
>
> We can start a big war about that book now, but we should discuss
On 11/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks,
>
> I'll finaly figure it out. It was not very intuitive though, even looking
> at the help file. The final code, for whom it might interest is:
>
> xyplot(Volume ~ Age|Farm,
> groups = Treatment,
>
On 12/2/07, Dylan Beaudette <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have noticed an odd inconsistency when plotting a 'step' function
> (type='s') in xyplot() vs. plot().
>
> For example, given the following data:
>
> ## generate some profile depths: 0 - 150, in 10 cm increments
> depth <- seq(0,150
On 12/3/07, Monica Pisica <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I wrote a panel function called panelwhite.corplot. If i use this function in
> a coplot is working fine, but if i use same function with xyplot i get the
> error: Error using packet 1: plot.new has not been called yet . and so
On 12/3/07, Judith Flores <[EMAIL PROTECTED]> wrote:
> Hi,
>
>I have a vector in a data frame that looks
> something like this:
>
> day<-c('Day -1','Day 6','Day 10')
>
>
>This vector specifies the order in which several
> panel will appear in a lattice plots. But the order in
> which such p
On 12/6/07, Christopher Oezbek <[EMAIL PROTECTED]> wrote:
> Hi Lattice-Experts/Hi Deepayan,
>I have been searching the archives for an answer to this, but am finally
> giving up:
>
> I am plotting stripplots above each other using
>
> stripplot(type ~ date, data = email)
>
> which looks exactel
On 12/6/07, Christopher Oezbek <[EMAIL PROTECTED]> wrote:
> But is there a technical reason for making this distinction? It seemed to
> me that most panel functions can deal with x and y parameters and that
> panel.densityplot could make use of the same mechanisms as panel.violin to
> subdivide ba
On 12/7/07, Aimin Yan <[EMAIL PROTECTED]> wrote:
> I try to make a xyplot like the following:
>
> xyplot(y1+y2~id|groups, ...)
>
> I also want to calculate cor(y1,y2) in each group, print it on each panel.
>
> Does anyone know how to write panel function for this?
This should work:
panel.cor <- f
On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> I would be grateful if anyone had suggestions
> about software that could (1) create 3D surface
> plots, (2) handle transparency/alpha blending,
> (3) generate output in some vector graphics
On 12/8/07, Judith Flores <[EMAIL PROTECTED]> wrote:
> Hello,
>
>I need to add some text in the upper left position,
> outside a lattice plot.
>
> xyplot(x~y)
> ltext(locator(1), label='My text')
>
> doesn't work.
library(grid)
ltext(grid.locator(), label='My text')
should.
-Deepayan
__
On 12/9/07, Judith Flores <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I need to save a series of lattice plots as a PDF,
> this is my code so far:
>
> windows(height=8,width=6)
> plot.new()
> library('grid')
> lattice.options(layout.heights=list(top.padding=list(x=0.15,
> units="inches")))
> pri
On Dec 9, 2007 6:58 PM, Judith Flores <[EMAIL PROTECTED]> wrote:
> Hi Deepayan and everyone,
>
>I need to add a common legend to a group of latice
> graphs, I have tried different ways using viewport and
> grid.draw without success.
Try looking at the first example in
http://dsarkar.fhcrc.org
On 12/10/07, Dieter Menne <[EMAIL PROTECTED]> wrote:
> Deepayan Sarkar gmail.com> writes:
>
> > Try looking at the first example in
> > http://dsarkar.fhcrc.org/lattice/book/Chapter12-Interaction/edited.R
> > for inspiration.
>
> May I suggest to use
>
On 12/10/07, John G. Bullock <[EMAIL PROTECTED]> wrote:
>
> >I'm using lattice to create a multi-panel figure. I would like
> > to draw each panel's y-axis ticks and labels on the right-hand
> > side of the panel. Ordinarily, I would do this by specifying
> > scales=list(y=list(draw=T, al
On 12/12/07, Erin Berryman <[EMAIL PROTECTED]> wrote:
>
> On Dec 12, 2007, at 1:37 PM, Deepayan Sarkar wrote:
>
> > On 12/12/07, Erin Berryman <[EMAIL PROTECTED]> wrote:
> >> Dear R community,
> >>
> >> Since upgrading to R v.2.6.1 and re-inst
On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Deepayan Sarkar wrote:
> > On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote:
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA1
&g
1 - 100 of 409 matches
Mail list logo