Displaying 10 results from an estimated 10 matches for "zvrba".
Did you mean:
vrba
2009 May 27
5
How to exclude a column by name?
Given an arbitrary data frame, it is easy to exclude a column given its index:
df[,-2]. How to do the same thing given the column name? A naive attempt
df[,-"name"] did not work :)
2009 May 10
1
ggplot2: recommended workaround for broken legend.position="top"
Searching the mail archives I found that using legend.position as in
p.ring.3 + opts(legend.position="top")
is a known bug. I tried doing
p.ring.3 + opts(legend.position=c(0.8, 0.2))
which works, but the legend background is transparent, i.e. I see the
plot background through the legend. Adding additional option
opts(legend.background=theme_rect(fill=TRUE,colour="white"))
2009 May 12
2
From two colors to 01 sequences
Dear All,
Perhaps, what I am asking is impossible, but I am asking it anyway.
I have got several pdf files with rows of colored rectangles: red
rectangles should be read as 0; green rectangles as 1. No other color
exists. Is there some way to have R reading the colored rectangles to
a matrix or data frame converting the color of the rectangles to
sequences of 01?
Thanks in advance,
Paul
2009 May 26
1
Selection and aggregation in one operation?
I have a large data-frame with measurements such as:
id i v1 v2 v3
1 1 1.1 1.2 1.3
1 2 1.4 1.5 1.6
1 3 1.5 1.7 1.8
2 1 2.1 2.2 2.3
2 2 2.7 2.5 2.6
2 3 2.4 2.8 2.9
For each unique value of 'id' (which in the real data-set is a combination of
three variables) I want to compute the median of v1 within each group ('i'
distinguishes measurements within a group), and copy the
2009 May 01
2
Reccomendation for graphics package
Hello,
What would you recommend for producing publication-quality plots with R?
Built-in graphics, trellis, ggplot2, or something else?
Basic requirements:
- I need to draw line-, box-, density-plots, bar-charts and histograms
- error bars on bar- and box-plots
- easy tiling of multiple plots on a single "page"
Basic R plotting with mfrow and mfcol parameters is not satisfactory
2009 May 04
2
Calculating relative ratios in a data frame..
I have a data-set that is structured as follows:
sp wg n v.realtime v.cputime v.tcputime v.idletime v.nswtch
9 0 1 1 28.61300 28.61 28.6039 0.00000e+00 407
1563 0 1 2 15.20270 30.38 28.5981 9.80523e-01 483
3128 0 1 4 12.50930 50.00 28.6053 1.07877e+01 489
4682 0 1 6 12.10260 72.55
2009 May 05
2
problem with ggplot2 boxplot, groups and facets
I have a following problem:
The call
qplot(wg, v.realtime, data=df.best.medians$gv1, colour=sp, geom="boxplot")
works nice: for each value of the wg factor I get two box-plots (two levels in
the sp factor) in different colours, side-by-side, centered at the wg x-axis.
However, I want to separate the data belonging to different levels of the n
factor, so I add the facets option:
2009 Jun 01
1
installing sn package
...____________________________________________________________________________
Cricket on your mind? Visit the ultimate cricket website. Enter
[[alternative HTML version deleted]]
------------------------------
Message: 8
Date: Wed, 27 May 2009 12:37:51 +0200
From: Zeljko Vrba <zvrba@ifi.uio.no>
Subject: [R] How to exclude a column by name?
To: r-help@r-project.org
Message-ID: <20090527103751.GB1197@anakin.ifi.uio.no>
Content-Type: text/plain; charset=us-ascii
Given an arbitrary data frame, it is easy to exclude a column given its index:
df[,-2]. How to do the same t...
2009 Jun 01
1
ggplot2: How to export several plots with same width?
I have three plots and I want the *plot area* to be of the same width on
each plot. Since the three plots have different legends, the text width
of the legend affects the width of the plot area (longer legend text =
narrower plot area). Exporting the three figures to postscript device
of same size gives thus unequal plot areas. How can I calculate the
correct width of postscript device for each
2009 May 21
1
postscript problems (landscape orientation)
I use the following function to export some figures to .eps:
p.eps <- function(p, fname, title = NULL, width, height)
{
postscript(file=fname, onefile=FALSE, paper="special",
width=width, height=height, horizontal=FALSE)
print(p + opts(title = title))
dev.off()
}
Whenever I have a page consisting of *only* figures exported in this way,
Acrobat Reader shows them in