search for: plot5

Displaying 5 results from an estimated 5 matches for "plot5".

Did you mean: plot
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
2009 Apr 14
2
subset dataframe by rows using character vector?
...plot <- c("plot1", "plot2", "plot3") # character vector used to select rows from data # create fake data from to try out subset v1 <- c(2,5,6,4,3) PLOTID <- c("plot1", "plot2", "plot3", "plot4", "plot5") full.data <- cbind(v1, PLOTID) full.data <- as.data.frame(full.data) # first attempt test <- which(full.data$PLOTID == plot) # second attempt test <- full.data[full.data$PLOTID == plot] I'm sure there is a simple solution here, but I'm unable to figure it out....
2007 Dec 09
1
Saving lattice plot as a PDF
...) plot.new() library('grid') lattice.options(layout.heights=list(top.padding=list(x=0.15, units="inches"))) print(plot1, split=c(1,1,2,3), more=TRUE) print(plot2, split=c(1,2,2,3), more=TRUE) print(plot3, split=c(1,3,2,3), more=TRUE) print(plot4, split=c(2,1,2,3), more=TRUE) print(plot5, split=c(2,2,2,3), more=TRUE) print(plot6, split=c(2,3,2,3), more=FALSE) ltext(grid.locator(), label='text', cex=1.3) ltext(grid.locator(), label='text', cex=1.3) And when I open the PDF created I see "text" at the bottom of may layout, even though I placed it at the top...
2007 Dec 10
2
Viewport and grid.draw
...f latice graphs, I have tried different ways using viewport and grid.draw without success. Here is what I have: plot.new() library(grid) library('IDPmisc') print(plot1, split=c(1,1,2,4), more=TRUE) print(plot4, split=c(2,1,2,4), more=TRUE) print(plot2, split=c(1,2,2,4), more=TRUE) print(plot5, split=c(2,2,2,4), more=TRUE) print(plot3, split=c(1,3,2,4), more=TRUE) print(plot6, split=c(1,4,1,4), more=FALSE) grid.text(vp=do.call(viewport,grid.locator(unit="npc")), label='A', gp=gpar(fontsize=20)) grid.text(vp=do.call(viewport,grid.locator(unit="npc")), label=...
2012 Aug 06
4
Overlay Histogram
Dear all, For two sets of random variables, say, x <- rnorm(1000, 10, 10) and y <- rnorm(1000. 3, 20). Is there any way to overlay the histograms (and density curves) of x and y on the plot of y vs. x? The histogram of x is on the x axis and that of y is on the y axis. The density curve here is to approximate the shape of the distribution and does not have to have area 1. Thank you