wrote:
Hi all: I've written a function and saved the worksapce.When the workspace of my function is re-open,I want display some introduction or step by step guidance of the function for the users.How can I do it? Thanks a lot!
??, you don't want to do distribute a workspace, but you want to
Wolf, Michael wrote:
Dear list,
I'm using the windows version of R. When plotting a curve or a line for time series with annual
data , e. g. GDP growth 1991-2003, the line seems to exist of a lot of smaller lines. Printing
the results the curves and lines seems to be unclean (because of using
Thanks for the tip using a smoothing technique before plotiing in order to get a curve
instead of a line connecting the observations.
But that's not the solution for my main problem with the unclean line plot. In order
to show my problem let's take this simple example:
xval - c(1, 2, 3, 4, 5,
On Friday 24 September 2004 09:35, Wolf, Michael wrote:
Thanks for the tip using a smoothing technique before plotiing in order to
get a curve instead of a line connecting the observations.
But that's not the solution for my main problem with the unclean line
plot. In order to show my problem
Wolf, Michael wrote:
Thanks for the tip using a smoothing technique before plotiing in order to get a curve
instead of a line connecting the observations.
But that's not the solution for my main problem with the unclean line plot. In order
to show my problem let's take this simple example:
xval
On Fri, 24 Sep 2004, Wolf, Michael wrote:
Thanks for the tip using a smoothing technique before plotiing in order
to get a curve instead of a line connecting the observations.
But that's not the solution for my main problem with the unclean line
plot. In order to show my problem let's take
I posted a similar question while ago:
http://tolstoy.newcastle.edu.au/R/help/04/03/0590.html
with not much success.
The only replies I recieved were in private, the one i keep in my inbox is:
Is this just a rasterization effect? i.e., a conceptually smooth
line looks jagged because the screen
Thanks for your help.
When testing your examples and hints I saw that printing the graph
results in a better (optimal) appearance of the line. Consequently, the
postscript command will lead to clean line appearances using a high
resolution/quality printer. At least, that's the decisive point in
Hello everyone,
Like a lot of people, I have been looking for functions in R doing ANOVA
(ok) and performing multicomparisons (like Student-Newman-Keuls, etc.).
As I have been a little bit disappointed, I have bee looking through the
net for such open source softwares. I found one in:
Hello,
how can i prepare the data for study a matrix with 360 rows x 15 columns with
Statis?!?
Is it necessary to run other analysis before Statis?
If so, how can i use multiple correspondence analysis??
Can you help me??
I'm desperate, thank you for your help.
Miguel Ribeiro
Portugal
On 24-Sep-04 Wolf, Michael wrote:
Thanks for the tip using a smoothing technique before plotiing in order
to get a curve instead of a line connecting the observations.
But that's not the solution for my main problem with the unclean line
plot. In order to show my problem let's take this
Jonathan,
Just a suggestion, but why not just export the images to disk, save a
URL to them, and do your queries as a two-step process. 1) get URL and
2) load URL. This seems to solve both problems. You just add a table
to the MySQL database with the urls, fast and easy to work with, and
Hi
You are probably mixing several things together.
Are your data time series?
What does is.ts(y) tell you?
Is the result TRUE?
In thet cas your construction aggregate(y, 1, mean) can work.
A by argument has to be list in case of aggregate. Is it?
So please try to read help pages to any
Hello,
I am tinkering a bit with options(), namely, how to query and set them
up to suit my needs.
1)
The basic problem seems that the editor entry in options looks like this:
options()
-
$editor
[1] emacsclient
Hi,
I currently following some introductory material Data mining with R,
which was highly reccommended to me (its really great!).
During my studies I tried to run a given function to identify and
substitute unknown values.
Seemingly, running this function (page 57) did not work and gives me an
Hi,
How I can see the members of clusters generate by AGNES or DIANA (package
clusters)?
Thanks,
Fernando Prass
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
On Fri, 24 Sep 2004, Albrecht Kauffmann wrote:
Dear all,
I am interested in plotting maps visualizing spatial statistics in an
aggregated fashion, according to administrative boundaries. Partially, I
want to visualize some spatial data for administrative units (autonomous
republics,
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
I'm sorry. My message just pointed to
the document by Roger Peng:
http://www.biostat.jhsph.edu/~rpeng/docs/R-debug-tools.pdf
HTH,
T.
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
Schwarz,Paul wrote:
Dear R-Help readers,
I suspect that this question must be a FAQ, but my investigation of the archives has
not been very revealing. Is there an R function for calculating moving averages of
time series objects?
library(gregmisc)
?running
test - ts(rnorm(100))
test2 -
Guillaume,
Your comments are a compliment to R.
Undoubtedly other software is preferable if you want to do
Student-Newman-Keuls or Fisher's protected LSD (ANOVA F-test followed by
unadjusted T-tests). Perhaps the reason is that neither Student-Newman-Keuls
nor Fisher's protected LSD is a valid
Hi all,
I'm writing a program in C++ in witch there should be some graphical outputs.
To do so, I would like to use R with the command :
R --no-save cmdfile.R , where I put the R graphic commands in the
cmdfile.R file.
I call R from my C++ code but as R seems to run in batch mode, there are no
You'll probably need to send your cmdfile.R to see what is in it, as
that is where the problem likely is. However, if you do something
line:
pdf('my.pdf')
plot(1:10,1:10)
dev.off()
in your cmdfile.R, you will get a pdf file of the plot saved in the
directory where you ran your script. Note
Poizot Emmanuel wrote:
Hi all,
I'm writing a program in C++ in witch there should be some graphical outputs.
To do so, I would like to use R with the command :
R --no-save cmdfile.R , where I put the R graphic commands in the
cmdfile.R file.
I call R from my C++ code but as R seems to run in
Hi all,
I am interested in obtaining R code related to geographically weighted
regression.
In particular, I am interested in building geographically weighted
Poisson GLMs. The model will contain categorical and continuous x
independent variables, with interaction effects between categorical
[EMAIL PROTECTED] wrote:
Hi,
I tried your suggestion to blindly import the blob into R, doing the following:
con - dbConnect(MySQL, host=host, user=user, dbname=db)
rs - dbGetQuery(con, statement=paste(select picture from db where id=1)
It didn't crash R. But rs is not usable. It
Hi!
Since August I am using emacs on my Macintosh to edit the R objects. I
have installed R 1.9.1, Mac OS X 10.3.5 and GNU Emacs 21.2.1. However
there are some issues I haven't resolved:
a) switch the caps lock key to the meta key (and when this is not
possible, switch the alt/option key to
On Fri, 24 Sep 2004, Mark Conrad wrote:
Hi all,
I am interested in obtaining R code related to geographically weighted
regression.
In particular, I am interested in building geographically weighted
Poisson GLMs. The model will contain categorical and continuous x
independent
I can never remember how to use order to sort the rows of a data frame,
so like any good, lazy programmer, I decided to write my own function.
The idea is to specify a data.frame and a one-sided formula with +/-
indicating ascending/descending. For example:
sort.data.frame(~ +nitro -Variety,
Mark Conrad wrote:
Hi all,
I am interested in obtaining R code related to geographically weighted
regression.
In particular, I am interested in building geographically weighted
Poisson GLMs. The model will contain categorical and continuous x
independent variables, with interaction effects
Paul Schwarz [EMAIL PROTECTED] wrote:
Is there an R function for calculating moving averages of time series
objects?
Others have replied, but here's the simple answer for a trailing 5-day
moving average, no non-standard packages needed:
R x - 1:20
R filter(x, rep(1/5,5), sides=1)
-- David Brahm
I'm trying to write some code that throws a few expressions around the
place, and I've boiled down the problem to be equivalent to this.
Consider the curve function which plots expressions in 'x':
curve(x^2)
Now wrap that in the most naive wrapper function:
fc=function(m){curve(m)}
and try
I am interested in obtaining R code related to geographically weighted
regression.
- package mgcv's gam function allows you to fit `variable parameter
models' which include geographically weighted regression as a special
case. For example if you think `income' depends on `age', but expect
I think you want some eval/substitute action, such as
fc - function(m) { eval(substitute(curve(m))) }
-roger
Barry Rowlingson wrote:
I'm trying to write some code that throws a few expressions around the
place, and I've boiled down the problem to be equivalent to this.
Consider the curve function
I have a function that does some plotting. I then add lines to the
plot. If executed one line at a time, there is not a problem. If I
execute the function, though, I get:
Error in ans[[1]] : subscript out of bounds
This always occurs after the second lines command, and doesn't happen
Barry Rowlingson wrote:
I'm trying to write some code that throws a few expressions around the
place, and I've boiled down the problem to be equivalent to this.
Consider the curve function which plots expressions in 'x':
curve(x^2)
Now wrap that in the most naive wrapper function:
Sean Davis wrote:
I have a function that does some plotting. I then add lines to the
plot. If executed one line at a time, there is not a problem. If I
execute the function, though, I get:
Error in ans[[1]] : subscript out of bounds
This always occurs after the second lines command, and
Hi all
As a new user of R, I need some help for a contour plot..
- How can I change x,y labels format ie .01 - 1%
- Is is possible to change Axis Grph fonts to Times 11?
- How can I change the xaxp? I gave it several trials without success..
Par(xaxp(0,1,4)
Working on a toy example. I have run the debugger/browser on the
example to find what line generates the error. However, I can't step
into lines()--hence the question.
Thanks for the help.
Sean
On Sep 24, 2004, at 12:18 PM, [EMAIL PROTECTED] wrote:
Can you provide an example. Have you run
Hi!
Don't know about how to switch the keys (I suspect that if you take a
look at the Emacs manual you'll find that's not difficult at all).
But if you like to have different colors for R within Emacs you should use
ESS (Emacs Speaks Statistics), which is available at
Here is an example that seems to reproduce the error:
rf1 - matrix(sort(abs(round(runif(4)*100))),nrow=1)
annot1 - sort(abs(round(runif(193)*100)))
annot2 - annot1 + 70
annot3 - cbind(annot1,annot2)
rat2 - rnorm(193)
rat1 - rnorm(193)
plotter -
function(annot,rat1,rat2,rf1,...) {
Is it possible to get sweave to produce raster (eg. png/jpg) plot
images? I'm writing a vignette that contains plots with tens of
thousands of points which results in very large pdf files (13 megs
before compression).
Thanks,
Hadley
__
[EMAIL
On Fri, 24 Sep 2004, hadley wickham wrote:
Is it possible to get sweave to produce raster (eg. png/jpg) plot
images? I'm writing a vignette that contains plots with tens of
thousands of points which results in very large pdf files (13 megs
before compression).
Yes. I do it by including
I was looking for some routines to fit Zernike polynomials but nothing came up in the
archive search. Can anyone provide a lead?
--Rich
Richard Kittler
AMD TDG
408-749-4099
__
[EMAIL PROTECTED] mailing list
On Friday 24 September 2004 11:42, Waichler, Scott R wrote:
I would like to plot horizontal box-and-whisker plots in lattice where
each
factor has its own panel and scales are free. Below is a stripplot
version
of what I have in mind. Substituting bwplot doesn't work. I know
it's gotta
Sean Davis wrote:
Here is an example that seems to reproduce the error:
Well, debugging in apply() isn't funny and I'm tooo lazy at quarter past
eight on a friday evening. Anyway, you can
(a) do it using a loop (which isn't that inefficient compared to the
apply() approach), or
(b) the clever
Naji wrote:
Hi all
As a new user of R, I need some help for a contour plot..
- How can I change x,y labels format ie .01 - 1%
- Is is possible to change Axis Grph fonts to Times 11?
- How can I change the xaxp? I gave it several trials without success..
Par(xaxp(0,1,4)
The problem was is that you were not return a value from the apply
function. It was trying to store the result of the apply into an array and
there was no value.
See the line I added in your function.
__
James HoltmanWhat is
I would like to plot horizontal box-and-whisker plots in lattice
where
each factor has its own panel and scales are free. Below is a
stripplot version of what I have in mind. Substituting bwplot
doesn't work.
This won't work (easily) with R = 1.9.1. Try with 2.0.0 beta, and let
us know
Sorry for the cross-post. Not sure where the problem is...
A while back I posted an R function to R-help:
cd - function (dir = tclvalue(tkchooseDirectory()), saveOld = FALSE,
loadNew = TRUE) {
stopifnot(require(tcltk))
if (saveOld)
save.image(compress = TRUE)
Dear Andy,
Perhaps it's possible, but I've never been able to get tcltk to work
properly under ESS/Xemacs on Windows.
Regards,
John
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Liaw, Andy
Sent: Friday, September 24, 2004 3:03 PM
To: [EMAIL
On Friday 24 September 2004 14:45, Waichler, Scott R wrote:
I would like to plot horizontal box-and-whisker plots in lattice
where
each factor has its own panel and scales are free. Below is a
stripplot version of what I have in mind. Substituting bwplot
doesn't work.
This won't
On Fri, 2004-09-24 at 15:02, Liaw, Andy wrote:
Sorry for the cross-post. Not sure where the problem is...
A while back I posted an R function to R-help:
cd - function (dir = tclvalue(tkchooseDirectory()), saveOld = FALSE,
loadNew = TRUE) {
stopifnot(require(tcltk))
if
Dear Andy,
I've taken the liberty of copying this reply to the r-help and ess-help
lists since my last reply was misleading.
I believe that the problem with tkchooseDirectory() (you can see it by just
calling that function directly) is that it brings up a native Windows
dialog, and it's that
From: Marc Schwartz
On Fri, 2004-09-24 at 15:02, Liaw, Andy wrote:
Sorry for the cross-post. Not sure where the problem is...
A while back I posted an R function to R-help:
cd - function (dir = tclvalue(tkchooseDirectory()),
saveOld = FALSE,
loadNew = TRUE) {
Kjetil == Kjetil Brinchmann Halvorsen [EMAIL PROTECTED]
on Fri, 24 Sep 2004 08:34:19 -0400 writes:
Kjetil Schwarz,Paul wrote:
Dear R-Help readers,
I suspect that this question must be a FAQ, but my
investigation of the archives has not been very
revealing. Is
Hello,
I have been asked to perform a exponential correlation on a data set.
Unfortunately, i did not find any simple example on how to do that with R.
If the correlation is significant, one asked me to also find the thresold
of the acceleration slope.
Have any of you a little example
57 matches
Mail list logo