Displaying 20 results from an estimated 20000 matches similar to: "parameter couldn't be set in high-level plot() function"
2009 Jul 13
0
Partial Correlation
Why do we get Partial correlation values greater than 1?
I have used the default function pcor.mat :--
I have manipulated the default pcor.mat function a bit so ignore tha
variables corr_type,element1_in_no,element2_in_no,P.Please ignore the
?pairwise? section and have a look at athe ?listwise ? part i.e else part.
*pcor.mat <-
2004 Feb 08
2
parsing numbers from a string
Dear R-help members,
I have several large data sets from certain simulations I did and now I want to plot the results nicely.
I don't know anything about the size of the x and y values in advance.
Plotting these values is not a problem.
However, I want to add errorbars (errbar in the Hmisc package).
1) For this I'm factoring the data (xdata00 varies from 0 to max(xdata00))
xfactor00 =
2008 Jun 24
2
persp plot
I have a set of data in the form
x1, y1, z1
x1, y2, z2
...
x1, yN, zN
x2, y1, z(N+1)
x2, y2, z(N+2)
...
x2, yN, z(2N)
...and so on...
xM, yN, val(M*N)
I have been trying to figure out how to get R to use this data in a
persp plot. So far the only thing that I can figure out to do is to
break the data file into three different files. The first file
contains the x-coordinate data:
x1
x2
2010 Feb 05
2
Pause in non-interactive mode
Dear all,
I've found this nice code fragment on the web
(from Jan T. Kim if I'm correct):
hitReturn <- function(msg)
{
invisible(readline(sprintf("%s -- hit return", msg)));
}
But it does not seem to work in non-interactive mode
( I mean, when I start a script like this: R --vanilla < script.R )
It simply continues, I guess the stdin is not connected?
Does somebody
2009 Jun 25
2
Error: system is computationally singular: reciprocal condition number
I get this error while computing partial correlation.
*Error in solve.default(Szz) :
system is computationally singular: reciprocal condition number =
4.90109e-18*
Why is it?Can anyone give me some idea ,how do i get rid it it?
This is the function i use for calculating partial correlation.
pcor.mat <- function(x,y,z,method="p",na.rm=T){
x <- c(x)
y <- c(y)
2008 Jul 11
2
Problems with Package Installation.
I am having difficulty installing packages. For example, here I have tried to
install "gplots" but to no avail. I have tried multiple mirrors and
different packages (errbar) but after installation I seem to be unable to
access any of the commands or help pages. I am a little concerned about the
'lib' missing message but this has been present for previous successful
package
2009 Jun 28
1
ERROR: system is computationally singular: reciprocal condition number = 4.90109e-18
Hi All,
This is my R-version information:---
> version
_
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
status
major 2
minor 7.1
year 2008
month 06
day 23
svn rev 45970
language R
version.string R version 2.7.1 (2008-06-23)
While calculating partial
2006 Nov 14
1
greatest common substring
Dear R-members,
Suppose I have a vector with the following strings:
V = c("Welfare_Group_1024",
"Welfare_Group_1536",
"Welfare_Group_160")
I want to 'automatically generate a nice y-axis label for this data.
A good candidate is something close to "Welfare Group".
Is there an easy way to compute something close to the greatest
common
2005 Jan 31
2
Extracting a numeric prefix from a string
Hi
Does anyone know if there is a function similar to as.numeric that will
extract a numeric prefix from a string as in the following examples?
x<-c(3, "abc", 5.67, "2.4a", "6a", "6b", "2.4.a", 3, "4.2a")
df.x<-data.frame(Code=x)
x.str<-levels(df.x[,1])
# required function result
2.40 3.00 4.20 5.67 6.00 NA
Thanks
Mike White
2006 Jul 03
1
xlab, ylab in balloonplot(tab)?
I'm not understanding something.
I'm trying to add xlab & ylab to a balloon plot of a table object. From docs
I thought following should work:
require(gplots)
# From balloonplot example:
# Create an example using table
xnames <- sample( letters[1:3], 50, replace=2)
ynames <- sample( 1:5, 50, replace=2)
tab <- table(xnames, ynames)
balloonplot(tab)
2010 Aug 30
1
[LLVMdev] Recursion in TableGen
I've been playing around with some ways to tighted up our AVX
specification and have hit upon a nice way to reduce a bunch of code.
Unfortunately, right now TableGen can't handle it. Here's a simple
example of what I want to do:
class Data<string n, int v> {
string Name = n;
int Value = v;
}
// Define some objects usable as arguments.
def X : Data<"X", 1>;
2005 May 26
2
warnings from hist(): parameter XXX couldn't be set in high-level plot functionN
Hello -
This is not a real problem, just an annoyance. Sometimes, but not always,
I get a set of strange warnings from hist(). Example follows.
############################
#Produce a histogram of start dates for a set of field measurements.
# I didn't reproduce all the dates, because not sure it's relevant, but
here's a sample.
# Note the invalid date in the fifth element.
>
2012 Aug 28
3
date in plot, can't add regression line
Hello all,
I have been using R for about 3 weeks and I am frustrated by a problem. I have read R in a nutshell, scoured the internet for help but I either am not understanding examples or am missing something completely basic. Here is the problem:
I want to plot data that contains dates on the x axis. Then I want to fit a line to the data. I have been unable to do it.
This is an example of
2010 Apr 14
1
Problems getting symbols() to show table data
Hello,
I am trying to create a graphic to help me visualise data. A (very
simplified) sample of the data is
http://n4.nabble.com/file/n1839676/circle_data.txt circle_data.txt :
Aug-07 Nov-07 Feb-08
data1 1 1.5 -1
data2 1 1.2 1.6
data3 1.3 1.4 1.8
data4 1.3
2011 Jun 21
2
par code help
I am making a barplot using barplot2 from gplots where each bar
represents a specific tree species. I have formatted the species names
on the x-axis so that the genus name is above the species name and
have then rotated the labels 45 degrees to save room. This is my code:
>columncolor<-c("grey20", "grey20", "grey20", "grey70",
2011 May 23
2
Formatting names.arg
I am making a barplot using barplot2 from gplots and would like to
format the names of my categorical variables (tree species) on the x-
axis so that the genus name is above the species name (to save room).
My code so far is:
speciesnames<-c("Dialium guianensis", "Inga alba", "Tachigali
versicolor", "Brosimum utile", "Caryocar
2011 Mar 08
2
plotCI() with ggplot2
Hello
Currently, I plot some coefficients with some intervals using
function "plotCI()" (package "gplots") using the following code:
(m1 <- matrix(0:5, nrow=2, byrow=T, dimnames=list(c("v1", "v2"),
c("lo", "m", "hi"))))
m2 <- m1 + 1
library(gplots)
plotCI(
x=1:length(m1[, 1]),
pch="",
2007 Nov 02
0
gplots 2.5.0
Announcing gplots 2.5.0
---------------------------------
gplots provides additional plotting functions, including several
enhanced versions of base R functions.
Provided functions include:
balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2,
hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans,
qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space,
2007 Nov 02
0
gplots 2.5.0
Announcing gplots 2.5.0
---------------------------------
gplots provides additional plotting functions, including several
enhanced versions of base R functions.
Provided functions include:
balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2,
hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans,
qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space,
2010 Apr 09
2
error bars on barplot
Hi
I was hoping someone might be able to help me I have this data:
birdid timetaken numvisits ptachchoice time bold
1087 8 10 1 AM 0
1087 28 6 1 PM 0
1087 13 3 2 AM 0
1087 121 0 2 PM 0
1046 121 0 1 AM 1
1046 121 0