Displaying 20 results from an estimated 10000 matches similar to: "more graphics questions"
2004 Jan 22
4
Axes Ticks
Apologies, basic question on plot.
y <- c(-4,3,-2,1);
x <- c("time 1", "time 2", "time 3", "time 4");
plot(x,y, type="b");
of course fails.
x <- 1:4
makes it succeed, but then I have too many ticks on my X axis. I want
exactly 4 tickmarks. It would also be nicer if I could name the ticks.
I looked at ?par and Venables&Ripley,
2004 Feb 24
0
Suggestions ?!?!
For the question at the end, try barplot with the
horiz=TRUE argument.
Date: Tue, 24 Feb 2004 09:30:21 -0500
From: ivo welch <ivo.welch at yale.edu>
To: <r-help at stat.math.ethz.ch>
Cc: <r-help-owner at stat.math.ethz.ch>,ivo welch <ivo.welch at yale.edu>
Subject: [R] Suggestions ?!?!
hi chaps:
* I have some suggestion, the first of which is about
2004 Jul 07
3
fast NA elimination ?
dear R wizards: an operation I execute often is the deletion of all
observations (in a matrix or data set) that have at least one NA. (I
now need this operation for kde2d, because its internal quantile call
complains; could this be considered a buglet?) usually, my data sets
are small enough for speed not to matter, and there I do not care
whether my method is pretty inefficient (ok, I
2004 Jun 20
4
if syntax
I ran into an interesting oddity of R,
if (0) { print(1); }
else { print(2); }
is a syntax error, while
if (0) { print(1); } else { print(2); }
or
if (0) { print(1);
} else { print(2); }
is not. I presume it has to do with the duality of the newline
functioning as an end of command (;) character, though it still seems a
bit odd, and it took me a while to figure out
2010 Dec 03
1
"Nash Equilibrium"
Dear R experts:
I searched cran (and r-help) for "nash equilibrium" and "game" but
nothing stuck out. has someone written a numerical nash optimizer for
two players?
player a has choices x1,x2,x3,... and cares about (maximizes)
pa(x1,x2,x3,...,y1,y2,y3)
player b has choices y1,y2,y3,..., and cares about (maximizes)
pb(x1,x2,x3,...,y1,y2,y3)
I can tune it to my problem, but
2004 Mar 26
8
stop() vs. error() ?
Why does stop("we are done") print
"Error in eval.with.vis(expr, envir, enclos) :" ?
It would seem to me that a plain stop() is not an error, and that it
would make more sense to have an error() function that is different from
a stop(). Is there a rationale here that I am missing?
sincerely, /iaw
2009 Jan 19
1
R bug or ghostscript bug or my bug?
Dear R developers:
The following R program produces a pdf file that does not survive
ghostscript distillation correctly. The undistilled version is at
http://welch.econ.brown.edu/temp/try.PDF while the distilled version
is at http://welch.econ.brown.edu/temp/try.pdf . When previewed, the
points are wrong in the distilled .pdf version, but only in one of the
two points invokations (huh?) . The
2013 Feb 06
5
First R Package --- Advice?
Dear R experts---
after many years, I am planning to give in and write my first R
package. I want to combine my collection of collected useful utility
routines.
as my guide, I am planning to use Friedrich Leisch's "Creating R
Packages: A Tutorial" from Sep 2009. Is there a newer or better
tutorial? this one is 4 years old.
I also plan on one change---given that the
2003 Nov 26
1
lines(lowess()) trouble
hi: apologies for taking up everyone's time. my problem is probably
documented somewhere, but I again cannot find it. (which reminds me: I cannot
find a search engine that allows me to search the archives of this very useful
mailing list.)
* it seems that lines(lowess()) fails to plot certain line segments. (and,
what does it do at the x-min and x-max of a data set?) Rather than
2004 Jun 09
5
direct data frame entry
hi: I searched the last 2 hours for a way to enter a data frame
directly in my program. (I know how to read from a file.) that is, I
would like to say something like
d <- this.is.a.data.frame( c("obs1name", 0.2, 0.3),
c("obs2name", 0.4, 1.0),
c("obs3name", 0.6, 2.0) ,
2004 Feb 25
1
aliases (PR#6614)
Full_Name: ivo welch
Version: 1.8.1
OS: linux
Submission from: (NULL) (130.132.33.212)
please define aliases for the 5 essential data set operations
delete row
insert row
delete column
insert column
rename column
these are too difficult for novices as-is now, and the cost for doing this for
you would be very low. if need be, define hints only, such as
dataset.del.row() <-
2004 Jun 09
3
more obvious contribution mechanism?
can we put a "how to donate money to R" on the R webpage? perhaps with
a paypal button?
even better, because I would like to donate some funds from my research
budget, could the R-project possibly sell some trinkets for a high price
for support? it is difficult to explain to a non-profit org (like yale)
why i want to donate its money to another non-profit org. they would be
2004 Mar 29
0
Help Documentation (PR#6716)
hi henrik (all): A better solution would be to have levels:
set.help(level="beginner"), which then provides expanded explanations.
However, I do not think this is necessary: For the most part, the online
R docs are great. It is not more detailed explanations that beginners
crave. My primary wishes arise as I stumble onto a need, and then wish
for a few more examples of different
2010 Aug 20
3
Date Inconsistencies? Buglets?
The treatment of dates seems to be a little inconsistent in R 2.11.1
(2010-05-31):
[1] The choice of origins?
> as.integer(as.Date("1970-01-01"))
works and assumes as origin 1970-01-01. However,
> as.Date(1)
does not work. It requires an origin (as.Date(1,
origin="1970-01-01")). If we set a default origin in the former, it
should probably work when the input
2013 Feb 26
1
Light Libraries
Dear R-Help group:
I have been tinkering with how I want my personal standard library
functions to look like. They are not designed to be professional and
heavyweight, but lightweight. There are probably dozens of little bugs,
because I don't know or have not properly taken care of a variety of
internal R code issues. still, I like how this ended up, and there is no
learning curve, so I
2004 Mar 29
1
Help Documentation (PR#6717)
Ivo,
Let me address your points in reverse order:
1. There is a `wishlist' category for bug reports, which I guess you've
overlooked.
2. There is also a `Contributed Documentation' section on the R web site,
which you can submit your contribution. As well, there are a few
introductory level documents there already that you might be interested.
3. I must repectfully disagree about
2012 May 31
2
print.data.frame to string?
dear R experts---is there a function that prints a data frame to a string?
cat() cannot handle lists, so I cannot write cat("your data frame is:\n",
df, "\n").
regards, /iaw
----
Ivo Welch (ivo.welch@gmail.com)
[[alternative HTML version deleted]]
2012 Mar 30
4
list assignment syntax?
Dear R wizards: is there a clean way to assign to elements in a list?
what I would like to do, in pseudo R+perl notation is
f <- function(a,b) list(a+b,a-b)
(c,d) <- f(1,2)
and have c be assigned 1+2 and d be assigned 1-2. right now, I use the clunky
x <- f(1,2)
c <- x[[1]]
d <- x[[2]]
rm(x)
which seems awful. is there a nicer syntax?
regards, /iaw
----
Ivo Welch
2013 Feb 07
4
Hard Stop?
is it possible to throw a stop() that is so hard that it will escape
even tryCatch?
/iaw
----
Ivo Welch (ivo.welch at gmail.com)
2004 Aug 03
0
strange tickmarks placing in image
Hello,
I've a problem aligning tickmarks to an image. I've created a correlation matrix for 84 datasets. I'm visualizing the matrix as an image with colour coding according to the correlation coefficient.
The 84 datasets are distributed over three factors, but the desgin is unbalanced, so that the tickmarks and the lables for the axis must not evenly distributed. A regular grid via