similar to: plot dataframe with inconsistently relations

Displaying 20 results from an estimated 4000 matches similar to: "plot dataframe with inconsistently relations"

2012 Nov 08
3
Regrouping dataframe
Hi @ all, I hope for some help of you. I have a dataframe and I want to regroup it. examp4.csv <http://r.789695.n4.nabble.com/file/n4648927/examp4.csv> I need the arguments of "VAL" as table heads and the "TYPE " only in individual expression. The result should look like in the example pic. exp4.png <http://r.789695.n4.nabble.com/file/n4648927/exp4.png> I
2012 Nov 15
3
merge dataframes with condition
Hi @ all, I wamnt to combine two dataframes including a condition. I have two dataframes like the following: animal<-c("bear","bear","lion","monkey","fish","monkey","bear","zebra","zebra") val<-c(2,42,67,5,12,9,87,1,12)
2012 Nov 12
8
no y-axis
HI @ all, I'm looking for a simple solution to supress the y-axis - but only the drawn scale - not the values. Only the numbers should be displayed. I tried yaxt="n" but there everything of the y-axis is supressed. Thanks GeO -- View this message in context: http://r.789695.n4.nabble.com/no-y-axis-tp4649298.html Sent from the R help mailing list archive at Nabble.com.
2009 Apr 14
2
subset dataframe by rows using character vector?
Dear List, I'm stuck on what seems like a simple indexing problem, I'd be very grateful to anyone willing to help me out. I queried a dataframe which returns a character vector called "plot". I have another dataframe from which I want to subset or select only those rows that match "plot". I've tried subset, and also the "which" command. plot
2007 Dec 26
1
seekViewport error
Why does the seekViewport at the bottom give an error? > xyplot(Sepal.Length ~ Sepal.Width, iris, group = Species, col = 11:13, + auto.key = TRUE) > grid.ls(view = TRUE) ROOT GRID.rect.89 plot1.toplevel.vp plot1.xlab.vp plot1.xlab 1 plot1.ylab.vp plot1.ylab 1 plot1.strip.1.1.off.vp GRID.segments.90 1 plot1.strip.left.1.1.off.vp
2012 Nov 08
2
Stacked Barchart as relative share
Hi @ all, I'm looking for a solution to plot a dataframe as a stacked bar chart like on this picture: http://4.bp.blogspot.com/_79SognVSu7A/S6OtzgksPSI/AAAAAAAABrw/-IuFNewdZFE/s400/Stacked%2BBar%2BChart.png My dataframe example2.csv <http://r.789695.n4.nabble.com/file/n4648854/example2.csv> My questions: Is there a standard function to convert the values to 100 percent relate to
2008 Nov 11
1
Retrieving x argument name from a trellis object in R 2.8.0
Dear all, let consider the following function: Fun1 <- function() { library(lattice) plot1 <- 1:10~1:10 pl1 <- xyplot(plot1) return(pl1$call$x) } In R 2.5.0 (or older version) we have > Fun1() plot1 but starting from R 2.5.1 until the latest R 2.8.0 we obtain instead > Fun1() NULL because pl1$call seems to be equal to xyplot() without arguments. Something like
2005 Dec 26
4
lme X lmer results
Hi, this is not a new doubt, but is a doubt that I cant find a good response. Look this output: > m.lme <- lme(Yvar~Xvar,random=~1|Plot1/Plot2/Plot3) > anova(m.lme) numDF denDF F-value p-value (Intercept) 1 860 210.2457 <.0001 Xvar 1 2 1.2352 0.3821 > summary(m.lme) Linear mixed-effects model fit by REML Data: NULL AIC BIC
2003 Oct 19
2
problem with win.metafile( ): traceback()
For the first error message: > win.metafile(file = "//.../plot1.wmf", + width = 8.5, height = 6.25) > lset( list( background = list(col = "white"))) Error in get(x, envir, mode, inherits) : variable "win.metafile://.../plot1.wmf" was not found > traceback() 4: get(device) 3: trellis.device(device = .Device, new = FALSE) 2: trellis.par.get(item) 1:
2007 May 31
4
Aggregate to find majority level of a factor
I want to use the aggregate function to summarize data by a factor (my field plots), but I want the summary to be the majority level of another factor. For example, given the dataframe: Plot1 big Plot1 big Plot1 small Plot2 big Plot2 small Plot2 small Plot3 small Plot3 small Plot3 small My desired result would be: Plot1 big Plot2 small Plot3 small I
2008 Sep 19
1
Lines between panels in lattice
Hello, I have a multi-page display each consisting of two-panels above each other. I need to draw a line from the top panel to bottom panel. Using current.vpTree() i find that "plot1.panel.1.2.vp" and "plot1.panel.1.1.vp" are the top and bottom ones respectively. I am using the following code(inspired by Paul Murrell's R Graphics) to draw a line. (All the
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
2011 Jul 19
5
multiple plots in single frame: 2 upper, 1 lower
Hi, par(mfrow = c(2,2)) will create a 2x2 window that I can use to plot 4 diferent figures in: [plot1 plot2] [plot3 plot4] But how can do 3 so that the bottom spans the width of the upper two: [plot1 plot1] [p l o t 3] Is this possible in R? -- View this message in context: http://r.789695.n4.nabble.com/multiple-plots-in-single-frame-2-upper-1-lower-tp3679574p3679574.html Sent from the R
2007 Dec 11
2
ggplot - Setting the y-scale in a bar plot
Dear All (probably Hadley), I am now trying to customise some plots using a bar geom. I do not want to use the default binning statistic, but rather calculate the bar heigths separately. I do manage this, but for comparison purposes I would like to have a set of plots all with the same y-axis height. But I do not seem to find out how to fix the scale of the y-axis in this case. Any tips?
2004 Feb 20
1
unexpected postscript output with par(mfg)
Hi, a colleague of mine encountered some unexpected behavior regarding the postscript output from R. It's difficult for me to tell whether or not this is an R problem or a ghostview/gv/interpreter problem. Just to note, I think it's exactly the same situation reported here: http://finzi.psych.upenn.edu/R/Rhelp02/archive/25436.html The following code produces a working plot (no
2006 Mar 19
2
tick mark intervals
Hi everyone! This must be a common question but I have not found an answer to it in the archives yet. I am producing four plots with par(mfrow=c(2,2)). The x-axis is the same for all of them but the y-axis is different. What I would like to do is to have a different range of the y-axis and different intervals between tick marks. BUT I would like to have the same number of tick marks and I would
2008 Jan 25
4
Function for translation of a list into a matrix as used by ordination?
Hello. Does anyone know of an existing function that takes a list in the form of: Plot1 Species1 Abundance1 Plot1 Species2 Abundance2 Plot2 Species1 Abundance1 Plot2 Species3 Abundance3 . . . PlotN SpeciesN AbundanceN and translates into a matrix in the form of Species1 Species2.... SpeciesN Plot1 Abundance1 Abundance2... AbundanceN Plot2 Abundance1
2009 Apr 08
1
Tinn-R pdf()
Dear R and Tinn-R users, i recently switched to Tinn-R and sending code to R works fine (R 2.8.1, Tinn-R 2.2.0.2, OS Windows XP). However, i encountered a problem when trying to send plots to pdf files like this: library(lattice) pdf("plot1.pdf") PLOT<-(xyplot, ...) PLOT dev.off() The file "plot1.pdf" is created, but it is empty. If i paste the code above directly into
2008 Nov 24
3
multiple plots in R
Hi, I just try to draw multiple plots in one page using R, I used par command. For example I have 7 plots, but instead of arranging them in the default way plot1 plot2 plot3 plot4 plot5 plot6 plot7 I want them in this order plot1 plot2 plot3 plot4 plot5 plot6 plot7 Could somebody tell me how to do this, please? Thanks so many. Suyan
2007 Nov 23
1
R 2.6 and library(survival)
Hi all, I have installed in R 2.6 the survival package and I am trying to analyze some data and present plots. The problem occurs when I try to plot lines on the same plot. E.g. take simulated data for time (t), event (e) and groups (group1 and group2) and do: ### this is how I create the plots plot1<-survfit(Surv(t,e)~ as.factor(group1)) plot2<-survfit(Surv(t,e)~ as.factor(group2))