similar to: Trellis margins settings so that they are like a base graphic with no figure region when printed to png file?

Displaying 20 results from an estimated 10000 matches similar to: "Trellis margins settings so that they are like a base graphic with no figure region when printed to png file?"

2008 Dec 17
1
Shrink Trellis margins settings (when printed to png file)
Dear R-experts, I have two problems: PROBLEM (1) ----------- I want to produce a very small png file (35 x 18 px) that contains a histogram without a figure region or margins, only the pure heights. In the base graphic system this is simple: png(filename = "hist.png", res = 72, width=35, height=18) par(mar=c(0,0,0,0), oma=c(0,0,0,0)) hist(rnorm(100),
2008 Oct 06
1
Margin on trellis plot
Dear all I have a problem when I make a trellis plot - I would like to reduce the white margin surrounding the plot. I used S some years age, as I remember it was possible to use the "par" and "oma" to control margin size even on a trelllis plot (see the plot below). However, it does not seem to work in R. All suggestions will be highly appreciated. Br Henrik
2012 Mar 08
3
"figure margins too large" in RGtk2 drawing area as cairo device - why?
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large" Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case. > win = gtkWindow() > da = gtkDrawingArea() > win$add(da) > asCairoDevice(da) [1] TRUE > plot(1:10) Fehler in plot.new() : Grafikr?nder zu gro? > Also
2008 May 07
2
figure margins too large for a barplot in png, pdf ok
I've used to have a script with a barplot command it in, preceded by a png: png(graph.file,height=H,width=W) barplot(t,names.arg=breaks[2:(length(t)+1)],tck=gridlines) -- worked before R 2.6.2. When I tried it in R 2.6.2, which I have for a while but didn't run with that script, it complained, the margins too large, and I've googled the messages from our list where neither
2012 Jul 12
2
trellis margin sizes in absolute units
Dear R users, I have a lot of experience with traditional R graphics, but I decided to turn to trellis as it was recommended for spatial graphs by the sp package. In traditional R graphics I always first set the size of the device region absolute units (e.g. mm) and then I firmly fix the inner margins with mai and the outer margins with oma also in absolute units. What is left from the device
2006 Oct 19
0
Rug-like density plots on margins of figure
Hi everyone, I'm trying to plot density curves on the axes of a plot, in a similar way to the 'rug' function. I have had a look at a few approaches and libraries, including: * layout http://addictedtor.free.fr/graphiques/RGraphGallery.php? graph=78 * fancygraph http://addictedtor.free.fr/graphiques/RGraphGallery.php? graph=81 * ggplot - gave up since it needs R 2.3.0 and
2010 Nov 15
1
plot.dendrogram() plot margins
Hello, Is it possible to remove those extra margins on the "sample" axis from plot.dendrogram: par(oma=c(0,0,0,0),mar=c(0,0,0,0)) ddr<-as.dendrogram(hclust(dist(matrix(sample(1:1000,200),nrow=100)))) stats:::plot.dendrogram(ddr,horiz=F,axes=F,yaxs="i",leaflab="none") vs. stats:::plot.dendrogram(ddr,horiz=T,axes=F,yaxs="i",leaflab="none")
2005 Nov 11
1
Lattice (Trellis) plot margins
Is there an equivalent way to set plotting parameters as in par(mai=c(......)) in the Lattice package? I searched trellis.par.get(), but am not sure which one can be used. Paul E. Green [[alternative HTML version deleted]]
2010 Feb 12
2
Multiple figures margin problem
Hello All, I am trying to make a figure with 3x2 plots in it. Let us name the plots as such: 1 2 3 4 5 6 I begin my script with: par(mfcol=c(3,2)) par(oma=c(0,0,0,0)) --> This is for a postscript figure so I really don't need the outer margins. d=5 par(mar=c(d,d,d,d)) --> This applies to all the 6 plots. Now if d=0, plots 1-2,3-4 and 5-6 will have no gap between them and
2006 Aug 13
2
Vector Join
Hi, I'm working on producing a simple cumulative frequency distribution. Thanks to the help of the good people on this list I now have four vectors that I'd like to join/relate into a table. e.g. v1 <- myHistogram$breaks # classes v2 <- myHistogram$counts # freqs v3 <- cumsum(v2) # cumulative freq v4 <- ((v3 / length(myData)) *
2011 Feb 15
0
Relationships between png resolution, axis.text$cex trellis setting, and paddings
Dear R-users, I was wondering if somebody could shed some light on the relationships existing between the resolution of a png device, the axis.text$cex trellis setting, and the paddings of the actual graph. In the following code, I create a custom trellis theme that set (among other thing) axis.text$cex to 1 instead of the default 0.8. Then a lattice graph is created and exported to three png
2008 Feb 18
1
Plotting a legend outside the figure - units
Dear R gurus, I am trying to plot a legend in the margins of a figure. The basic idea is to have two (or more) plots on the same figure, but then to have a common legend at the bottom of the plot. The approach that I have taken is to setup the figures, then do a "dummy" plot of the legend to determine the height of the legend box (ie from the value returned by the legend() command). I
2012 Jul 06
2
Error in plot.new() : figure margins too large
Hello All, I am running the following code in RStudio, and I keep on getting an error message that says: "Error in plot.new() : figure margins too large" Is there something that I am doing wrong? # Import Data nba <- read.csv("http://datasets.flowingdata.com/ppg2008.csv", sep=",") nba #Sort Data (sorting by Points, but could be sorting by any other variable)
2012 Jun 27
1
Error: figure margins too large
Hello, I am running cluster analysis, and am attempting to create a graph of my clusters. I keep on getting an error that says that my figure margins are too large. d <- file.choose() d <- read.csv(d,header=TRUE) mydataS <- scale(d, center = TRUE, scale=TRUE) #Converts mydataS from a matrix to a data frame mydataS2 <- as.data.frame(mydataS) #removes "coden"
2008 Jan 16
1
Error in plot.new() : figure margins too large
Hi I am getting error : Error in plot.new() : figure margins too large Can you please help -----code is ------------------------------------------------------------ temp <- seq(5500000/2, 22000000, 5500000/2) sV2 <- c(1, 1+temp[-length(temp)]) eV2 <- temp i=1 bitmap(paste("c:/vidhu/poster/poster_56half_2", LETTERS[i], ".png", sep = ""), "png256",
2000 Jan 11
1
Figure margins too large
I seem to remember an error like this being mentioned before, but if it wasn't: > zz <- density(rnorm(100)) > plot(zz) Error in plot.new() : Figure margins too large > version _ platform sparc-sun-solaris2.6 arch sparc os solaris2.6 system sparc, solaris2.6 status major 0 minor 90.1 year 1999 month December day 15 language R Paul Gilbert
2011 Apr 03
3
Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
Hi, I am using color2D.matplot (...) function of "plotrix" package. I used a matrix of size around 20*20 However, apparently it failed to visualize the matrix and gave the following exception, which I don't have any idea about possible source of this error. "Error in plot.new() : figure margins too large" It would be appreciated if someone points me to the right origin
2008 Sep 09
1
"figure margins too large" issue
Hi everyone, I updated R from 2.6.2 to 2.7.2 recently but keep getting the error "figure margins too large" when plot pictures which never happened to me when using 2.6.2. After googling and searching the mailing list, I still have no idea how to optimize it. One of my packages fixed bugs in 2.7.2 version, so that I have to use it. Any suggestions are really appreciated!!! Best
2007 May 09
1
Error in plot.new() : figure margins too large
Yes, I already had a look on previous posts but nothing is really helpful to me. The code is: postscript(filename, horizontal=FALSE, onefile=FALSE, paper="special", bg="white", family="ComputerModern", pointsize=10); par(mar=c(5, 4, 0, 0) + 0.1); plot(x.nor, y.nor, xlim=c(3,6), ylim=c(20,90), pch=normal.mark); gives error Error in plot.new() : figure margins too
2006 Dec 22
0
plot.mids / Error in plot.new() : figure margins too large
Hello R-Users, I would like to check the convergence of my imputations. However, when I use the function the plot.mids(), I always obtain the following error message Error in plot.new() : figure margins too large I read the same question in thread from November 2005 (see below). I actually have the same problem. Is it now possible to plot subsets of mids.objects. If yes, how? My