similar to: sizing non-vector point shapes in ggplot2

Displaying 20 results from an estimated 1100 matches similar to: "sizing non-vector point shapes in ggplot2"

2008 Jul 30
1
bug in 'margins' behavior in reshape - cast
according to the documentation of the cast function in the reshape function, I would expect this bit of code from the examples to calculate marginal means over only the 'diet' variable. #Chick weight example names(ChickWeight) <- tolower(names(ChickWeight)) chick_m <- melt(ChickWeight, id=2:4, na.rm=TRUE) cast(chick_m, diet + chick ~ time, mean, margins="diet") But,
2008 Jun 17
1
ggplot facet spacing, wrapping
I'm running into some problems with the spacing of some faceted ggplot plots. I have a number of time series faceted to be one above another, but the scale labels of the y axes all clobber each other at the bottom/top of each. for example, try: qplot(x, y, data = data.frame(x = 1:10, y = 1:10, size = 1:10), facets = size ~ ., size = size) + scale_x_continuous(breaks = 1:10) +
2007 Feb 12
1
Width of a plotting point (in inches) in grid package
Hello, I'm trying to determine the width of a plotting point (in inches) in the grid package. I naively thought I could create a pointsGrob with only one point and get the width (as tried below), but this results in an object with a size of 0inches (changing cex has no effect). Does anyone have a better approach? Of course, it would be dependent upon the graphics parameters and viewport...
2009 Jan 21
1
Can I add a point to a pointsGrob from an xyplot without redrawing ?
Hi: I am a newbie using grid and lattice. I want to update a xyplot without redrawing and I was wondering if there is a way of adding a point to a pointsGrob ? For example, take the example from the "R Graphics Book" page 218-219: grid.newpage() angle <- seq(0, 2*pi, length=21)[-21] x <- cos(angle) y <- sin(angle) xyplot( y ~ x, aspect = 1) Lets say I take the pointsGrob
2010 May 30
2
geom_ribbon removes missing values
Hi everyone, it looks like geom_ribbon removes missing values and plots a single ribbon over the whole interval of x values. However, I'd rather want it to act like geom_line, that is, interrupt the ribbon for the interval of missing values and continue once there are new values. Here's an example: library(ggplot2) df <- data.frame( date = seq(from = as.Date("2010-05-15"),
2008 Sep 17
3
unix-type commandline keystrokes in the windows RGUI
Hi all, I am generally quite fond of the unix commandline keystrokes (e.g. searching back in your history with [CTRL]-R, and cutting/pasting with [CTRL]-K/Y) which work in the R commandline in *nix. Does anyone know if there's any way to get similar functionality in the Windows RGUI? I know that as of now, [CTRL]-A and -E do the same as unix (beginning and end of line) and [CTRL]-Y does a
2003 Nov 02
2
evolution mail client
Hi, I just wanted to know if anyone else is encountering error when compiling Evolution on FreeBSD 4.8 or 4.9. I have problems compiling e- util section of this port.
2009 Dec 10
1
Moving Averages in ggplot2
Hello all, Have some time series data stored in a data.frame, and am plotting it with ggplot2 (which is totally awesome). I have explored the documentation and mailing list archives, and I can't see any way to plot a 'smoother' that is just the K-step moving average. For example, imagine I had a data.frame called 'sleep' with 'date' as the date (from as.Date()) and
2009 May 21
1
size of point symbols
Dear list, This might be a topic for r-devel but i may be missing something obvious. I don't understand the rationale in the absolute sizes of the point symbols, and I couldn't find it documented. The example below uses Grid to check the size of the symbols against a square of 10mm x 10mm. > checkOneSymbol <- function(pch=0){ > gTree(children=gList( >
2009 May 21
1
size of point symbols
Dear list, This might be a topic for r-devel but i may be missing something obvious. I don't understand the rationale in the absolute sizes of the point symbols, and I couldn't find it documented. The example below uses Grid to check the size of the symbols against a square of 10mm x 10mm. > checkOneSymbol <- function(pch=0){ > gTree(children=gList( >
2007 Oct 10
1
Setting qplot default options
Hello, is there a possibility to set default options to qplot? I need to draw a lot of graphs and would like to have all of them as point plot but with a greater size and a fixed color for all dots. Thanks for help. Christoph
2005 May 20
2
Lattice: it seems, a bug in draw.key function
Dear r-help, Now I am drawing graphs with xyplot function. In order to place a legend under the plots I use the key argument in the xyplot function. One of the 'key' components is 'divide', which defines a number of points on the each line of the legend. The default is 3 points. I would like a single point, so I set divide = 1. Call to xyplot didn't produce
2005 Apr 14
2
Legend in xyplot two columns
Dear R-Help I have some trouble to set the legend in a xyplot into two rows. The code below gives me the legend in the layout I am looking for, I just rather have it in two rows. library(lattice) schluessel <- list( points=list( col="red", pch=19, cex=0.5 ), text=list(lab="John"), lines=list(col="blue"),
2007 Jul 04
1
Lookups in R
Hey all; I'm a beginner++ user of R, trying to use it to do some processing of data sets of over 1M rows, and running into a snafu. imagine that my input is a huge table of transactions, each linked to a specif user id. as I run through the transactions, I need to update a separate table for the users, but I am finding that the traditional ways of doing a table lookup are way too slow to
2003 Aug 12
1
Gigabyte GA-7DPXDW+ sound problems
Hi, I recently changed my motherboard to Gigabyte GA-7DPXDW+ and I can't get onboard AC97 sound to work. I added 'device pcm' to my kernel config file and sndstat returns FreeBSD Audio Driver (newpcm) Installed devices:", nothing ;( Any hints ? I'm running FreeBSD 4.8-STABLE
2003 Oct 05
1
SMP motherboard and temperature monitoring with /dev/io
Hello, I have an SMP motherboard (Gigabyte GA-7DPXDW+) and I'm trying to monitor the temperature of the processor. The chipset for I/O control is Winbond W83627HF. When using any program for monitoring temperatures, I only get the temperature reading for the second processor. How do I get readings for both processors or only the first one ? TIA
2007 Sep 27
2
Connecting R to PostgreSQL via RODBC, on Windows
hey all, I feel like I must be missing something rather plain, but I don't get it. how is one supposed to use R as a PgSQL client on Windows? Assume my windows desktop is on the same network as a PgSQL server, and I just need to use R to connect and pull down some data. The thing that is confusing me is that RODBC doesn't seem to know anything about PgSQL, in that
2007 Aug 03
1
O(?) access time for rownames/colnames/named dimensions
Dear princely R developers to whom I owe so much of my daily productivity level, I am wondering how indexing by row and column names are implemented. That is, when I have a matrix with named rows (or columns) and I then index into that matrix using the string names (rather than integers), how does R scan through the list of names in order to figure out which row/column to use? My current
2010 Jun 04
1
Shapes in barplots
Hi, I am making barplots . I am using the default shape of barplots with a pipe but I wants to build bars in various 3d shapes. I have install rgl using install.packages('rgl') for this purpose, but when I am doing library(rgl), it shows Error in library(rgl) : there is no package called 'rgl' What are the other ways to build such plots of variuos shapes. Is that *TeachingDemos
2004 Dec 06
0
convert Map shapes to logical matrices - for set operations
Hi, I have a little problem. I'm trying to do the following: Convert _projected_ shapes from a Map object into logical matrices. That is, rasterize a shape into a logical "in-the-shape" and "out-of-the-shape" matrix. What I'm trying to do is get an 'equal-area' estimate of the area of intersection between two overlapping shapes, without any concern about