Displaying 20 results from an estimated 8000 matches similar to: "attempted merge() returns: cannot coerce type 'closure' to vector of type 'any'"
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?
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
2010 Sep 12
3
create a '3D line plot'
Esteemed useRs and developeRs,
I need to create a '3D line plot' (proper name?) of which an excellent
example can be viewed here:
http://cococubed.asu.edu/images/87a/images/unknown_pleasures.jpg
I have some experience using the rgl package to create 3D PCA plots, but
have no idea where to start for an image like this.
I'd really appreciate suggestions & help on how might
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
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
2010 Aug 23
5
How to remove all objects except a few specified objects?
How to remove all R objects in the RAM except for a few specified ones?
rm(list=ls()) removes all R objects in the R work space.
Another question is that whether removing all R objects actually releases
the RAM? Thanks.
--
View this message in context: http://r.789695.n4.nabble.com/How-to-remove-all-objects-except-a-few-specified-objects-tp2335651p2335651.html
Sent from the R help mailing list
2010 Sep 06
2
how do I transform this to a for loop
arima1 = arima(data.ts[1:200], order = c(1,1,1))
arima2 = arima(data.ts[5:205], order = c(1,1,1))
arima3 = arima(data.ts[10:210], order = c(1,1,1))
arima4 = arima(data.ts[15:215], order = c(1,1,1))
arima5 = arima(data.ts[20:220], order = c(1,1,1))
arima6 = arima(data.ts[25:225], order = c(1,1,1))
arima7 = arima(data.ts[30:230], order = c(1,1,1))
arima8 = arima(data.ts[35:235], order = c(1,1,1))
2011 Mar 09
3
Venn Diagram corresponding to size in R
I was wondering if anyone could help me figure out how to make a Venn
diagram in R where the circles are scaled to the size of each dataset. I
have looked at the information for venn (in gplots) and vennDiagram (in
limma) and I cannot seem to figure out what parameter to change. I have
looked this up online and do not seem to be seeing anyone else who has
posted this question or the answer to it
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
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.:
2010 Jun 26
2
several common sub-axes within multiple plot area
Dear List,
I'd really appreciate tip's or code demonstrating how i can achieve some
common axis labels integrated into a multiple plot.
In my example (below), i'm trying to achieve:
-a single "Results 1 (Int)" centered & btwn row 1 and row 2;
-a single "Results 2 (Int)" centered & btwn row 2 and row 3; and,
-a single "Results 3 (Int)" centered
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
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
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 Jun 01
1
using the design matrix to correctly configure contrasts
Esteemed R-forum subscribers,
I'm having a tough time configuring contrasts for my 3-way ANOVA. In short:
I don't know how to configure (all) my contrasts correctly in order to
specify (all) my comparisons of interest.
I succeeded getting my contrasts of interest set up for a simpler 2-way
ANOVA based on the fairly intuitive logic of the design col.names.
But i'm not able to
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") #**
2011 Feb 07
2
as.list(subclassed function) -> cannot coerce type 'closure' to vector of type 'list'
I was looking for all the glm-related 'family' functions
in stats using the following predicate that returns TRUE
for any function whose first argument is called "link".
is.family <- function(object) is.function(object) &&
identical(names(as.list(object))[1], "link")
It threw an error when applied to SSfol
> is.family(SSfol)
Error in
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
2005 Aug 11
2
question
Hi,
I have a problem with R, after an update:
this piece of code:
cat("creating resolver data frame\n");
dfG<-cbind(dfG,2^(RGN$G))
dfR<-cbind(dfR,2^(RGN$R))
suddenly, creates values to inf.
Is the syntax changed for the ^ symbol in the latest R downloadable version?
Kind regards, wilfred
--
Dr. Ir. Wilfred Van IJcken
Labmanager Genomics
Erasmus Center for Biomics,