Displaying 20 results from an estimated 800 matches similar to: "create a '3D line plot'"
2010 Sep 11
1
'programatically' list or call objects for use in a function?
Esteemed R users and developers,
How does one 'programatically' list or call objects for use in a function?
For example, i thought i could do something better than this:
save(A.cwb, B.cwb, C.cwb, D.cwb, E.cwb, F.cwb, file="afile.RData")
with something like these-
prfxs <- c("A", "B", "C", "D", "E", "F") #**
2010 Dec 01
1
attempted merge() returns: cannot coerce type 'closure' to vector of type 'any'
Hi Dimtris and esteemed useRs,
I don't understand why i get this error message when attempting to use
merge() -
> temp <- merge(x, y[,17, drop=FALSE], by=rownames, sort=FALSE)
Error in as.vector(x, mode) :
cannot coerce type 'closure' to vector of type 'any'
It should work because:
> all(rownames(x[order(rownames(x)),]) ==
+ rownames(y[order(rownames(y[,17,
2010 Oct 07
1
venneuler() - customize a few things.
Esteemed UseRs and DevelopeRs,
Just coming to terms with the very attractive proportional venn
gernator, venneuler(), but would like to customize a few things.
Is it possible to-
-suppress all circle labels?
-suppress only certain circle labels?
-print specific text strings at specified locations within the circles?
and unions?
-specify circle colors?
-specify label font, size & color?
2007 Mar 05
1
error message when using outer function
Dear R-users,
I have two sets of code that appear to me to be equivalent, shown below, and
yet I get the error message
"Error in dim(robj) <- c(dX, dY) : dim<- : dims [product 4] do not match the
length of object [1]"
after executing the assignment to logdens2. Both functions post.a1 and
post.a2 return the same values when run alone and not embedded in the
function outer. I
2011 Sep 07
2
How does one start R within Emacs/ESS with root privileges?
Esteemed UseRs and DevelopeRs,
Apologies if this question belongs else where, but it does concern R's
package installation/maintenance.
How does one start R within Emacs/ESS with root privileges?
I tried without success:
> M-x sudo R
Why i'm motivated to do so:
It seems logical to me, as the only user of the PC, to keep my R library
consolidated in the universal library rather
2010 Jul 19
1
heatmap.2() yielding an inappropriate key?
Esteemed R-users,
heatmap.2() is yielding an inappropriate key based on my colors and
break-points.
In the reproducible example below, the key is inappropriate (to me) because-
1. 'Orange' is simply not represented in the key, despite its prescence
in the heatmap.
2. The proportions of the key are clearly out, ie., my largest bin, (0.1
- 0.2) is half the range, but this bin (colored
2012 May 07
2
how to deduplicate records, e.g. using melt() and cast()
Esteemed UseRs,
This must be embarrassingly trivial to achieve with e.g., melt() and
cast(): deduplicating records ("pw.X" in example) for a given set of
responses ("cond.Y" in example).
Hopefully the runnable example shows clearly what i have and what i'm
trying to convert it to. But i'm just not getting it, ?cast that is! So
i'd really appreciate some ones
2012 Feb 18
1
help updating package rJava (on ubuntu)
Esteemed useRs and Devs,
Attempts to update package:rJava to the latest version have failed. See
my code and output below.
Notably, as suggested here
http://stackoverflow.com/questions/3311940/r-rjava-package-install-failing
$ sudo apt-get install r-cran-rjava
ran successfully without error or warning, but my rJava package is not
updated, and remains un-updatable...
Greatly appreciate any
2012 Dec 06
2
function to filter identical data.fames using less than (<) and greater than (>)
Esteemed UseRs,
I've got many biggish data frames which need a lot subsetting, like in
this example:
# example
eg <- data.frame(A = rnorm(10), B = rnorm(10), C = rnorm(10), D = rnorm(10))
egsub <- eg[eg$A < 0 & eg$B < 1 & eg$C > 0, ]
egsub
egsub2 <- eg[eg$A > 1 & eg$B > 0, ]
egsub2
# To make this clearer than 1000s of lines of extractions with []
# I
2012 Sep 26
2
specifying arguments in functions and calling functions, within functions
Esteemed R UseRs,
Regarding specifying arguments in functions and calling functions
within functions:
## beginning ##
## some data
ex <- rnorm(10)
ex[5] <- NA
## example function
Scale <- function(x, method=c("mean", "median")) {
scl <- method
scl(x)
}
## both return NA
Scale(ex, method=median)
median(ex, na.rm=FALSE)
## both return the median
Scale(ex,
2010 Jul 18
0
heatmap.2 - change column & row locations; angle / rotate
Esteemed R user's,
I'm struggling to achieve some details of a heatmap using heatmap.2():
1. Change label locations, for both rows & columns from the default
right & bottom, to left and top.
Can this be done within heatmap.2()? Or do i need to suppress this
default behavior (how) and call a new function to relabel (what)
specifying locations?
2. Change the angle of the
2007 Dec 31
2
point release?
Hello Esteemed Tent-pitchers,
Can we get a point release of the current camping trunk? 1.5.1 maybe?
I don''t know how stable trunk is, but there are lots of bugs that
would be nice to get resolved. Particularly the ones involving the
incorrect creation of the sessions table.
Evan
--
Evan Weaver
Cloudburst, LLC
2012 Jan 08
2
R package equivalent to Excel SOLVER - Paquete R equivalente a SOLVER de Excel
Esteemed colleagues
I wonder if there is a package in R that performs the functions of the
Excel SOLVER.
Thanks in advance for the reply.
Best regards,
-------------------------
Estimados colegas
Me pregunto si hay un paquete en R que funcione como el SOLVER de Excel.
De antemano gracias por la respuesta.
Saludos,
--
Ricardo Bandin Llanos
rbandin@udec.cl
[c] Magíster Cs. m. Pesquerías
2011 Dec 19
2
odd mdadm behavior
Allo esteemed Centos-ers,
Noticed something funny with an mdadm mirror based raid the other day.
So I had a system disk set to mirror via mdadm.
One of the disks went south at a remote office and since there was no
one available to swap out the disk, I thought to leave it for later.
Well, due to work being what is it, this later became a year.
During one of the servers many reboots, much of
2016 Jul 28
2
Exception Handling Deep Dive at Dev Meeting
I'm proposing that one of the esteemed members of the LLVM community
present a talk on exception handling both how it is done inside LLVM
and in general.
The interest from my part is the Windows Exception Unwinding which
from what I read is like Itaniums. It also looks like this is the one
implemented in LLVM and most everyone cares about.
I understand in the face of optimizations the
2011 Apr 18
0
heatmap.2 - change column & row locations; angle / rotate
Hi Chakravarthy,
[dont forget to Cc the list for useRs with the same Q.]
If you're trying to reuduce the isze of your row or column labels, i
think the following arguments of heatmap.2 {gplots} is what you want to
adjust- 'cexCol' and 'cexRow'.
Specifically on my question that you ask about, i found the BioC forum
helpful:
2010 Jun 30
1
Why the variation when creating .pdf file output for my plots?
Esteemed R Users,
Would some one be patient enough to explain the variation i see when
creating .pdf file output for my plots? FYI- my goal is produce the
highest quality .pdf output from the R 'command line' as opposed to
using the menu of the acitve graphics window.
Im using 32bit WinXP. Session info at the bottom. I have Ghostscript
v8.71 installed and in the Path such that
2010 Mar 30
1
Multivariate hypergeometric distribution version of phyper()
Dear R Users,
I employed the phyper() function to estimate the likelihood that the
number of genes overlapping between 2 different lists of genes is due to
chance. This appears to work appropriately.
Now i want to try this with 3 lists of genes which phyper() does not
appear to support.
Some googling suggests i can utilize the Multivariate hypergeometric
distribution to achieve this. eg.:
2016 Jul 28
2
Exception Handling Deep Dive at Dev Meeting
Hi,
On Thu, 28 Jul 2016 09:32:18 -0700
Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I think David and I are probably the most familiar with how WinEH works in
> LLVM, but I don't think either of us has time to prepare a talk for the dev
> meeting. I'm trying to prepare a talk on supporting the MS debug info
> format in LLVM this year. That said,
2011 Nov 28
1
plotting multiple lines on single graph ggplot2
Hello everyone
I have some data of the following type.
100 200 300 400 500
1.1 1.2 1.3 1.4 1.5
600 700 800 900 1000
1.5 1.7 1.9 2.0 2.4
With plot() and points functions I can plot these 4 lines of data. But
I dont know how to do it with qplot or ggplot functions. The scenario
is something like this: the hundreds should appear on x-axis and the
fractional values of y axis.
Thanks alot.
MEMON