search for: nplot

Displaying 8 results from an estimated 8 matches for "nplot".

Did you mean: plot
2007 Jun 21
2
Need Help: User Defined R Functions in Sweave/Latex
...ot;\Sexpr{}" will not work because the R code I want to use over and over is in the R environment. I've tried numerous ways to tackle this process and could really use some help. If there is some easier way to do this please let me know! This is the R function: basicplot <- function(x, nplots, sectionname){ # Begin to make figure here file = paste("scatter",nplots, ".pdf", sep="") pdf(file = file,paper="special", width=6, height = 6) plot(x) dev.off() cat("\\begin{figure}\n") cat("\\includegraphics{",file,"}\n", sep=...
2002 May 07
4
Putting obejct into Graph title
Hello all - If I want to put mean value of a matrix into the title or subtitle of a graph, how would I do this? For example, in a set of commands like below, > m.mean<-mean(m) > gplot (m, thresh=m.mean) > title (main="A2. Block Density of Matrix m\nplotted based on MDS", + sub="lines below mean density (**0.435**) suppressed") I want to ask [R] to put the mean value (whatever it is, calulated as m.mean) into subtitle automatically, instead of my writing **0.435**. Is it possible? Thanks! -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
2001 Feb 27
1
Patch to coplot.R
...27 **** ...) } if ((i == total.rows) && (j%%2 == 0)) ! if (nlevels(x) > 0) ! axis(1, labels = levels(x), xpd = NA) ! else ! axis(1, xpd = NA) else if ((i == istart || index + columns > nplots) && (j%%2 == 1)) ! if (nlevels(x) > 0) ! axis(3, labels = levels(x), xpd = NA) ! else ! axis(3, xpd = NA) ! if ((j == 1) && ((total.rows - i)%%2 == 0)) ! if (nlevels(y) > 0) !...
2011 Feb 25
1
plotmath: how to create a vector of expressions?
...get: Error in fun(key = list(x = 0.5, y = 0.8, text = list(list(expression(paste("(", : first component of text must be vector of labels What's wrong? How can I create the required vector (of expressions)? Cheers, Marius library(lattice) val <- matrix(1, nrow = 10, ncol = 3) nplot <- 10 labs <- sapply(1:3, function(i) substitute(expression(paste("(",i,"), ",l==len,"mm",sep="")), list(len=2*i))) myplot <- xyplot(0~0, panel=function(...){ for(i in 1:3){ panel.xyplot...
2009 Oct 05
2
Loop function/comparison operator problem
...There, I have created the following function format<- function(){ repeat { form<-readline(paste("\nIn what format do you want to save these plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff, ps, eps, or pdf.\nNote: eps is the suggested format for publication quality plots.\nPlot format --> ")); cat("\nI'm sorry, I don't know what that format is.\nPlease try again\nPress ENTER...");readline()} if (form == c("wmf", "emf", "png", "jpg", "jpeg", "bmp", "tif", "tiff", &qu...
2003 Jun 05
1
Error when creating layouts with partly filled pages within lattice
...fault.xyplot, prepanel = prepanel, have.xlim = have.xlim, xlim = xlim, have.ylim = have.ylim, ylim = ylim, x.relation = foo$x.scales$relation, y.relation = foo$y.scales$relation, panel.args.common = foo$panel.args.common, panel.args = foo$panel.args, aspect = aspect, nplots = nplots) 1: xyplot(y ~ x | my.shingle, data = my.data, as.table = T, scales = list(x = list(relation = "sliced")), layout = c(1, 4)) --- P.S. Allow me to take the opportunity to give big thanks to Deepayan Sarkar for writing and maintaining this brilliant package! --- Thoma...
2015 Feb 07
3
how to draw paired mosaic plot?
If there are many character variables,and I want to get the mosaic plot of every pair of each variable,how to do then? If the variables are numeric, I can use pairs to get paired scatter plot. But as to the character variables, how to get the "paired mosaic plot"? Many thanks. -- QQ: 1733768559 At 2015-02-07 17:04:26,"Jim Lemon" <drjimlemon at gmail.com>
2005 Jan 11
4
thanks
Dear all, Thanks to those 3 people who sent me answers to my question. Got the problem solved. Great! Now, another question of mine is: I would like to run an R script from the Linux prompt. Is there any way possible to do this? The reason is, the calculation that I'm doing takes a few hours, and I would like to automatize it. Or does it mean that I have to run source within the R