similar to: Fw: Help needed using lattice for area plots lpolygon, xyplot.

Displaying 20 results from an estimated 500 matches similar to: "Fw: Help needed using lattice for area plots lpolygon, xyplot."

2006 Jun 07
0
Help needed using lattice for area plots lpolygon, xyplot.
I am trying to learn how to use the graphics from the lattice package ( and am very new to R). I am trying to replicate the example plot referenced below, by using the lattice xyplot & lpolygon to create panels. I get what appears to be the correct shape of the filled region, but cannot get the position to overlay properly. I have attempted with various settings of position. ( i.e.
2006 Sep 06
7
Matrix multiplication using apply() or lappy() ?
I am trying to divide the columns of a matrix by the first row in the matrix. I have tried to get this using apply and I seem to be missing a concept regarding the apply w/o calling a function but rather command args %*% / etc. Would using apply be more efficient than this approach? I have observed examples in the archives using this type of approach. Does anybody have a snippet of a call
2006 Aug 31
2
cumulative growth rates indexed to a common starting point over n series of observations
What is the R way of computing cumulative growth rates given a series of discrete values indexed . For instance, given a matrix of 20 observations for each of 5 series (zz), what is the most straight forward technique in R for computing cumulative growth (zzcum) ? It seems for the solution I'm after might be imbedding the following cum growth rate calc as a function into a function call
2007 Mar 13
2
RODBC Excel sqlQuery insert into
I have searched the archives for using insert into to update spreadsheets using RODBC and have come up short. So, first off, is it possible? I have put together a dummy xls table (c:\foo.xls)for exploring possibilities of RODBC. Ultimately, I am interested in replacing much of our previous use of vba macros with R ( I'd prefer elimination, but will take what I can get ). In order to
2006 Jun 29
1
Help needed understanding eval,quote,expression
I am trying to build up a quoted or character expression representing a component in a list in order to reference it indirectly. For instance, I have a list that has data I want to pull, and another list that has character vectors and/or lists of characters containing the names of the components in the first list. It seems that the way to do this is as evaluating expressions, but I seem to
2011 Nov 16
1
Difference in gnome between centos <> fedora
Hello, I've on my home PC CentOS 6 and Fedora 13 on different disks. When I log on the gnome enviroment at Fedora knows exactly which programm was started at which desktop (for example: thunderbird on desktop 1, firefox on desktop 2, nautilus on desktop 3, ..). The same procedure on Centos takes all programs on the first desktop, so I must arrange the programs on the right desktop.
2006 Sep 25
1
Passing R connection as argument to a shell command on Windows
Hello, is there a way to pass a connection to a file in a zipped archive as argument (instead of a file name of unzipped file) to shell command "cut". In general, is it possible to pipe output of a R function to a shell command? How? I want to do something like: z = unz("zipArchive.zip", "fileASCII.ASC") # open connection open(z) # cut lines of the ASCII file in
2011 Dec 02
1
Plot coordinates with gradien colour according to a different column
Hi everyone, I'm having problems with plotting my data. I have a set of positions with different attributes and I'm wondering if I can plot it, as x,y plot, with gradient colours according to a 3rd factor. Is it possible to show gradient segments between postions and not one-coloured segment between each one? I've been trying plotrix color.scale.lines with no luck. I'm very
2007 Jul 24
3
Overlaying a single contour from a new data array in levelplot
Dear R-Help community, I am trying to overlay a single contour line over a correlation plot using levelplot in the lattice package. These are the two arrays: 1) a correlation plot over Africa - so each grid square is a different colour dependent on correlation - this is in an array: result_cor with dim[465,465] 2) a single contour line from a ***different data source*** - this is from data
2009 Feb 11
1
Help with XYPLOT with marginal histograms
I am trying to replicate the following plot using Lattice: http://addictedtor.free.fr/graphiques/graphcode.php?graph=78 I'm having trouble with the lattice equivalent of the "oma" (outside margin) setting. I've been all through the Lattice documentation and others and also searched the lists. Below is sample code that demonstrates where I'm at (it should paste
2008 Mar 14
1
smoothScatter
Hi, I have been trying to plot density plots using the example on: http://addictedtor.free.fr/graphiques/graphcode.php?graph=139 I used to use this function, but I cannot get any old code or even the example to work. library("geneplotter") require("RColorBrewer") x1 <- matrix(rnorm(1e4), ncol=2) x2 <- matrix(rnorm(1e4, mean=3, sd=1.5), ncol=2) x <-
2008 Sep 13
4
bubble(circle) plot help.
I need help creating a bubbleplot, like a simple pseudo three dimensional scatterplot of circles whose sizes index a 3rd variable. I initially came across this at http://addictedtor.free.fr/graphiques/graphcode.php?graph=73 but the circleplot function does not exist in fbasic as listed in the document. _________________________________________________________________
2009 Dec 27
1
Positions in datasets
Could someone help me understand this Basically I want to know the position of certain numbers in large output data sets. First consider the following simple example where we get the postions of ones (1) in the vector q. > q <- c(5,1,1,3,1,1,1,1) > q [1] 5 1 1 3 1 1 1 1 > for (i in 1:length(q)) if(q[i]==1) print(i) [1] 2 [1] 3 [1] 5 [1] 6 [1] 7 [1] 8 Well done! But now consider
2011 Dec 10
3
Overlaying density plot on forest plot
Dear R User, Please, I am new to R. I want to overlay density plot for predictive interval pooled result in meta-analysis. http://addictedtor.free.fr/graphiques/graphcode.php?graph=114 Regards Frank Peter
2011 Aug 22
1
lattice to ggplot2 conversion help
Hi, I am interested in ggplot2 and I found this lattice code very interesting (http://addictedtor.free.fr/graphiques/graphcode.php?graph=48). Code: library(lattice) lattice.options(default.theme = canonical.theme(color = FALSE)) tmp <- expand.grid(geology = c("Sand","Clay","Silt","Rock"), species = c("ArisDiff",
2008 Feb 05
2
maps and lattice
Is it possible to place maps onto lattice plots? With basic plotting you can add a map to a plot library(lattice) long<-c(-69.2, -69.5, -70.1, -70.3) lat<-c(41, 41.5, 43.2, 42.8) plot(long, lat) map('state', c("massachusetts"),add=TRUE) but is it possible with lattice? library(lattice) factor<-c(1,1,2,2) xyplot(lat~long|fact) ...now what? I have looked at panel and
2008 Sep 25
0
C++ & R: Displaying a lattice graphic using D Com
Dear list members, When I modify the MFC sample (using the statconnector graphics device) to show a lattice graph in the Active X control (actually the wireframe from http://addictedtor.free.fr/graphiques/graphcode.php?graph=40 ) the program runs without generating any errors, but the data-driven part of the plot does not display. The bounding box is displayed, but not the axes or data within
2009 Feb 11
0
Help with XYPLOT
I am trying to replicate the following plot using Lattice: http://addictedtor.free.fr/graphiques/graphcode.php?graph=78 I'm having trouble with the equivalent of the "oma" (outside margin) setting. I've been all through the Lattice documentation and others and also searched the lists. Suggestions? Thanks! [[alternative HTML version deleted]]
2009 Dec 11
1
Combining 3D/2D plots
Dear All, This is my first post to this mailing list (and yes, I did read http://www.r-project.org/posting-guide.html ) so please forgive any faux pas. I'm trying to make a visualization that looks like this http://www.gradient-da.com/img/temperature%20surface%20plot%20470x406.JPG(found through google). The idea is to have a 3D surface plot overlapping a 2d representation of a surface. I can
2010 Aug 08
3
Does anybody know how to control the appearance of the end of the line in lattice?
Hi All, I am plotting vertical lines using xyplot in lattice and type="h". It works well, but the problem is that the tops of the lines are convex and the bottoms are concave. Is there a way to flatten the tops and bottoms? Here's my code: Source<-matrix(1:30,10,3) colnames(Source)<-c("x","y1","y2") Source<-data.frame(Source) xyplot(y2+y1~x,