similar to: Grouping multiple runs of multiple datasets in lattice's xyplot

Displaying 20 results from an estimated 40000 matches similar to: "Grouping multiple runs of multiple datasets in lattice's xyplot"

2009 Apr 27
0
Grouping multiple runs of multiple datasets in lattice's xyplot (with fixed example code)
Hi: ( A bug in my example code was pointed in the post I sent out earlier today, so I am reposting with the fixed example code) I don't know if my explanation below is clear, so afterwards, I wrote a small a self contained annotated example that generates two plots. I execute simulations with different parameters settings that create several datasets, and for each parameter setting (or
2008 Jan 01
2
Alignment and Labeling of a color key in a xyplot?
Happy New Year to all R users! I have two short questions concerning a xyplot with a color key: 1) How do I properly place (align) the color key beside the xyplot? As you can see from the code listed below, the placement of the color key is not correct. I would like the upper and lower end point of the color key to be perfectly aligned with the upper and lower line of the xyplot. Adjusting
2004 Feb 05
2
xyplot (lattice): colours of lines
using either one of the following codes: xyplot(X ~ time | center, type="l", panel=panel.superpose, groups=subject, col = treatment) xyplot(X ~ time | center, groups = subject, panel = function(x, y, ...){ panel.superpose(x, y, col = treatment, type = "l", ...) }) I get two different colours for the lines by these colours do not match the corresponding treatment
2010 Aug 17
2
Matrix
How do I completely remove the first column? (x <- matrix(c(1, 44, 124, 80, 254, 70, 190, 0, 2, 35, 110, 70, 240, 73, 216, 0, 3, 41, 114, 80, 279, 68, 178, 0, 4, 31, 100, 80, 284, 68, 149, 0, 5, 61, 190, 110, 315, 68, 182, 1, 6, 61, 130, 88, 250, 70, 185, 0, 7, 44, 130, 94, 298, 68, 161, 0, 8, 58, 110, 74, 384, 67, 175, 0, 9, 52, 120, 80, 310, 66, 144, 0, 10, 52, 120, 80, 337, 67, 130, 0, 11,
2013 Jan 03
2
Sas by function in R
Hello, It's an alternative to use SAS by function in R? I want to plot d histograms by plot.from example bellow: Thank you! plot d 1 1 16.3 2 1 25.0 3 1 57.8 4 1 17.0 5 2 10.8 13 2 96.4 17 3 76.0 18 3 32.0 19 3 11.0 20 3 11.0 24 3 106.0 25 3 12.5 21 4 19.3 22 4 12.0 26 4 15.0 27 5 99.3 32 7 11.0 36
2010 Sep 14
3
how to compute when row length is different
hi guys..please help me with this i am working on two data frames one goes like this: DF1 Sample_id RepairHours Denatured Dose ZeroMean FourtyFiveMean NinetyMean 1 SDM071 0 1 B 60.5 19.0 45.0 2 SDM071 1 1 B 46.0 23.0 42.5 3 SDM071 2 1 B 52.5 24.0 40.0 4 SDM071
2008 Oct 07
2
panel.groups: use group.number to define colors
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) > y <- c(cos(xx), sin(xx), xx, xx^2/10) > fact <- factor(rep(c("cos", "sin", "id", "square"), each=100)) > fact2
2008 Aug 25
1
lattice : using both strip and strip.left
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 illustrate my questions, consider the following example: > library(ggplot2) > library(lattice) > > # example data > x <- seq(0, 10, len = 100) > y1 <-
2017 Mar 23
2
ayuda
Etimados Necesito llevar estos valores a un csv, pero exclyendo los numeros de orden que aparecen (como ejemplo 1 2 3 4 5 6 7... 146 147 148 149 ) ?cual es el procedimiento en R? saludos José adjunto el archivo 1 2 3 4 5 6 7 8 9 10 398.25016 314.53157
2011 Mar 07
1
XYPLOT - GROUPING WITH TWO CATEGORICAL VARIABLES
Hi! I have a dataframe like this: dat=data.frame(Age=c(rep(30,8),rep(40,8),rep(50,8)),Period=rep(seq(2005,2008,1),3),Rate=c(seq(1,8,1),seq(9,16,1),seq(17,24,1)),Sex=rep(c(rep(0,4),rep(1,4)),3))attach(dat)dat    Age Period Rate Sex1   30   2005    1   02   30   2006    2   03   30   2007    3   04   30   2008    4   05   30   2005    5   16   30   2006    6   17   30   2007    7   18   30   2008  
2010 Aug 13
1
Lattice: Superimposing histograms with different colors and transparency effects
Dear users, I would like to plot several histograms superimposed on the same panel with different colors, with superimposed polygons appearing with transparency effects. I also want estimated densities to appear on the same plot. For several reasons, including that I like it, I want to use the lattice package. I have several questions regarding the use of the 'histogram' function with a
2007 Aug 30
2
customizing the color and point shape for each line drawn using lattice's xyplot
Description of what I am trying to do: I am using the xyplot code below to plot the variable ?MeanBxg? against the variable ?PercentVarExplained? for all 9 possible combinations of variables ?bdg? and ?bdx?. Within each of these 9 scenarios I am plotting a separate line for each of up to 9 different methods that I used to estimate the variable MeanBxg. These methods are identified by the numeric
2006 Jul 10
2
Setting the colors of lines in a trellis plot...
With some help from those with expertise on this list, I managed to produce a plot using trellis that looked like I wanted it to look. Now, I need to take the same plot and make the lines on it color, but I want to specify the color for the lines myself. I've managed to make the key use the colors I want. I've managed to make the symbols of the actual plot use the colors I want. But I
2007 Oct 03
1
Reimplement order somehow
Hello, I have a script in R language that makes sorting using the order() method of R language. What I need is to reimplement this method in any other language (PHP, Perl, Python, Java maybe). First I tried to reimplement it in php, here is some numbers that i need to sort: 1,2,3,4,5,6,7,8,9,10,300,231,11,12,0,1 R language: n = c(1,2,3,4,5,6,7,8,9,10,300,231,11,12,0,1) n [1] 1 2 3 4 5
2009 Oct 20
2
descriptive statistics qn
This is day one on R for me, I am trying to figure out how to do simple computations. For example I have a data set with 200 observations. I am trying to compute the mean and variance in r for 1:25 (first 25 observations); 1:50 (first 50 obs) ; 1:100th observation etc. Here is the dataset: Id value 1 2.2338 2 3.13597 3 1.98685 4 4.35593 5 2.43963 6 4.20262 7 3.12131 8 4.79583 9 3.13937 10
2012 Mar 26
4
reading header in txt file and making histogram
Dear all I am a BEGINNER and have R on my Mac. I saved my excel file as .txt file, I have just one column with first row as the column name. My file when read by R looks like this. After reading the table I try to make a histogram by hist(dbh), it says object dbh not found. What am I doing wrong? thanks dbh 1 11.53 2 16.05 3 7.36 4 16.05 5 8.66 6 12.74 7 22.93 8 7.55 9
2009 Dec 22
0
Reshpaing for xyplot() or ggplot()
Dear list, I have 2 data sets such as: > head(calib20090730b) color XR XG XB L1_1 L1_2 L1_3 1 1 87 55 62 116 124.0 100 2 2 164 125 134 204 203.0 153 3 3 118 64 98 157 101.0 139 4 4 65 72 72 102 111.0 135 5 5 142 95 112 176 161.5 133 6 6 89 113 112 125 128.0 195 > head(refpanel) color B G R NIR1 NIR2 1 1 0.07 0.10 0.17
2011 Apr 11
1
Override col.lines and col.symbol in panel.xyplot with type='b'
Dear useRs, I have a longitudinal experiment with several treatment groups, ~20 subjects per group, ~6 timepoints and a continuous dependent variable. I have been successfully been using lattice::xyplot with this data. However, I have been stumped with a particular application of it. I would like to use xyplot on my data, broken into treatment groups with the groups argument, using
2013 Feb 27
2
matrix multiplication
Hi, Try this: #mat1 is the data res<-do.call(cbind,lapply(seq_len(nrow(mat1)),function(i) {new1<-do.call(rbind,lapply(seq_len(nrow(mat1[-i,])),function(j) {x1<-rbind(mat1[i,],mat1[j,]); x2<-(abs(x1[1,1]-x1[2,1])*abs(x1[1,5]-x1[2,5]))+(abs(x1[1,2]-x1[2,2])*abs(x1[1,6]-x1[2,6]))+(abs(x1[1,3]-x1[2,3])*abs(x1[1,7]-x1[2,7]))+(abs(x1[1,4]-x1[2,4])*abs(x1[1,8]-x1[2,8]))}));new1}))
2017 Mar 23
2
ayuda
Estimados ¿Los datos están en una lista o en un data.frame? Yo a eso lo supe hacer pero desde un data.frame a csv, lógicamente hay mucho gusto personal, técnicamente no debería haber inconvenientes. Javier Rubén Marcuzzi De: Isidro Hidalgo Arellano Enviado: jueves, 23 de marzo de 2017 10:19 Para: r-help-es en r-project.org Asunto: Re: [R-es] ayuda Si no recuerdo mal, la función