similar to: asCairoDevice issue

Displaying 20 results from an estimated 900 matches similar to: "asCairoDevice issue"

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
2012 Mar 05
2
changing the drawing context using Cairo and RGtk2
I am not too familiar with Cairo and RGtk2 and have the following problem: I have a container with two GTK drawing areas converted into Cairo devices. I know that I can set the current drawing context e.g. using dev.set(). But this is tedious. How can I set the context using the objects da1 or da2? w <- gtkWindow() w$setSizeRequest(400, 400) vbox <- gtkVBox() da1 <- gtkDrawingArea()
2011 Dec 22
1
RGtk2: How to overlay a gtkDrawingArea with a button or any other widget?
I try to overlay a plot inside a gtkDrawingArea with a button (or any other widget). I tried to put both into a gtkFixed container. But this does not work, no printing occurs. Does someone know a solution? What I tried: w <- gtkWindow() w$setSizeRequest(400,400) fx <- gtkFixed() da <- gtkDrawingArea() fx$put(da, 100, 100) asCairoDevice(da) par(mar=c(0,0,0,0)) plot(1:10) btn.1
2008 Jul 28
1
equivalent to "require" for imports? (cairoDevice)
Hi R-devel I use the packages RGtk2 and cairoDevice. The cairoDevice package has a few stand-alone functions, plus "asCairoDevice" which depends on RGtk2 and calls require(RGtk2). So cairoDevice lists RGtk2 under "Suggests" in the DESCRIPTION file. It can not Import RGtk2 because that would force all users to install RGtk2. The upshot of this is, if you *import* the RGtk2
2007 Nov 17
0
Drawing to a buffer (or double buffering)
Hi, I know this topic has come up several times, but I still haven't found a satisfactory solution to it. I want to draw complicated figures (preferably in X11) and display them only once they are completed. Obviously, the main purpose for doing this is so that a sequence of complicated plots can be shown (so a solution which destroys the window and creates a new one is not acceptable). So
2005 Oct 04
1
pdf plotting of splom
Hi, The following code produces a plot on X11: splom(~iris[1:4], groups = Species, data = iris, panel = panel.superpose, key = list(title = "Three Varieties of Iris", columns = 3, points = list(pch = super.sym$pch[1:3], col = super.sym$col[1:3]), text = list(c("Setosa", "Versicolor", "Virginica")))) However,
2012 Dec 11
1
Focus on a sub-panel of a splom with trellis.focs() -- return coordinate of sub-panel, or names of variables therein
Hi, I'd like to be able to generate a splom plot in R and then use my mouse to click on one of the sub-panels (panel.pairs, specifically) and have R return either the coordinates of that sub-panel, or even better, the names of the corresponding variables plotted in that sub-panel. Here's an example to work with: > library(lattice) > splom(~iris[1:4], groups = Species, data = iris,
2003 Mar 08
1
FIX: pscales=list(...) and splom
Dear R Users, When plotting with "splom" I tried to use the pscales=list(...) feature Unfortunately it didn't work at all. Instead the scales always were suppressed. So I looked at the source of panel.pairs and found: "draw <- is.numeric(pscales) && pscales != 0" which rather has to be: "draw <- is.list(pscales) || (is.numeric(pscales) &&
2009 Jun 05
1
Antialiasing plots and text on different devices
I have a question about antialiasing when R generates bitmaps. (This follows a thread on the ggplot2 mailing list.) I mostly use R on Linux, although I sometimes use it in Mac and Windows as well. On Linux, I've found that plotting shapes 15-18 via cairo results in bad-looking output. The points are not antialiased, and they are jagged and misshapen. Plots generated in Windows also aren't
2011 Oct 14
3
qcc package
Hi All, I installed qcc package and the dependency packages. For the first time I can use the function : process.capability.sixpack(). But later when ran the code again I always got the following error: Error: could not find function "process.capability.sixpack". I tried reinstalling the qcc package but didn't help. Does anyone have this kind of experience? Thank you! Regards, Yan
2013 Oct 21
2
png(type='cairo'): point symbols without boarders are not anti-aliased?
Hi, It seems that anti-aliasing in png(type = 'cairo') is not well supported for the point symbols without boarders, e.g. pch = 16. The Cairo package works well, though. You can compare png() with CairoPNG(): png(): http://i.imgur.com/8niB3jX.png CairoPNG(): http://i.imgur.com/FZBJOxm.png f = function(dev, ..., main = '') { dev(...) plot(c(1, 2, 1, 2), c(1, 1, 2, 2),
2010 Aug 27
0
How to maintain class signature in splom
All, I was having trouble trying to create a new class of data and pass it on to splom (in the lattice library). I mentioned this to Martin Morgan after a talk he gave. Following is not so much a question, but rather an answer from Morgan that might be useful to others. Here is the edited part of an email conversation with him: On Thursday, August 26, 2010 1:36 PM, Martin Morgan wrote:
2011 May 09
0
Lattice: splom plots for different factors with correlation in lower.panel
Hello list, I am looking to create a figure for my dataset using splom, where there is a splom subplot for each level of a factor within, for example, a 2x2 layout. For each subplot, I wish to put the r-value between each variable pair in the lower panel. The code I have thus far is below, using the iris dataset so that it is reproducible. This almost does what I want, but for some reason
2008 Sep 21
1
How to put given values in lower triangle of splom-plot?
Dear R-experts, I have found a splom-modification online which is given below. This works perfectly, but I would like to have a matrix of given correlation values to be used in the lower triangular part (lower.panel) of the splom-plot instead of calculated correlation values. Here is the matrix I would like to use (it can be any other convenient data structure):
2010 Jan 31
1
accessing column and row numbers inside splom in lattice
Hi, When using splom() in the lattice package, I would like to be able to access the row and column number of each individual pairs plot , similar to the way that current.row() and current.column() can be used in other lattice plotting functions such as xyplot. For example, I would like to be able to write something along the lines of library(mvtnorm) library(lattice) y <-
2007 Aug 01
1
Splom custom superpanels
I thought one nice addition to a splom figure would be to have the scatterplots in the upper triangle and a color-coordinated correlation matrix on the bottom. So I tried my hand at customizing panel.pairs(), and was rebuffed. Many times. Four hours of fruitless debugging later, I turn to you for help: panel.pairs(z=teststatfull[,6:12], pscales=0, panel.subscripts=FALSE, subscripts=,
2008 Apr 08
1
Legend on plots when using Cairo
Dear all, I am trying to use the Cairo package to avoid some X11 issues and it works very well. However, when I want to add a legend to my plots, I receive an error message from Cairo: > library(Cairo) > CairoPNG(file="test.png") > plot(1:100) > dev.off() null device 1 This works fine. But: > CairoPNG(file="test.png") > plot(1:100) >
2007 Mar 13
2
gtk button: how to create signal handler?
Hi Kindly correct me if I am posting a wrong query in the forum. I am trying to handle my "button:clicked" event. But not able to proceed further. Please help. Following is my code: library(RGtk2) win <- gtkWindowNew(type = NULL, show = TRUE) butt <- gtkButtonNewWithLabel("Submit", show = TRUE) win$Add(butt) Now I want to do something when my button is clicked. How
2004 Mar 03
0
R: Changing background in splom et al.
trellis.device(bg="white", color=F) before your call to splom could make what you want but take also a look at ?trellis.par.set Stefano > -----Messaggio originale----- > Da: v.demartino2 at virgilio.it [mailto:v.demartino2 at virgilio.it] > Inviato: mercoled? 3 marzo 2004 12.10 > A: r-help > Oggetto: [R] Changing background in splom et al. > > > Context:
2010 Jan 15
1
Lattice: How to color the data points in splom() according to the panel they are plotted?
Dear ExpeRts, I have the scatter plot matrix as given below. I would like the different "sub-plots" in the scatter plot matrix to be colored differently. How do I get all points shown in the upper-left plot (on position (1,1) in the scatter plot matrix) to be plotted in blue, and the points shown in the plot to the right (on position (1,2) in the scatter plot matrix) to be plotted in