search for: mpromber

Displaying 16 results from an estimated 16 matches for "mpromber".

2008 Oct 05
1
barchart for aggregated (sum) data in lattice?
...eside=T) But I'd like to be able to do this in lattice. I tried: barchart(amount~what|month,t1) But that doesn't sum the data for t1$amount for each month first. How could I do that? Thanks, Marianne -- Marianne Promberger Graduate student in Psychology http://www.psych.upenn.edu/~mpromber
2009 Jun 10
1
ggplot, qplot: alpha channel for colors corresponding to factor
...brary(ggplot2) qplot(jitter(Goodall),jitter(Better.adapt),colour=Second.adapt,data=d1) # follwoing doesn't work: qplot(jitter(Goodall),jitter(Better.adapt),colour=I(alpha(Second.adapt,1/5)),data=d1) Thanks for any pointers, Marianne -- Marianne Promberger PhD http://www.psych.upenn.edu/~mpromber PGP/GnuPG public key ID 80AD9916
2009 Mar 31
1
ggplot: order of numeric factor levels?
Hi, I'm having problems with qplot and the order of numeric factor levels. Factors with numeric levels show up in the order in which they appear in the data, not in the order of the levels (as far as I understand factors!) Here is a minimal example: library(ggplot2) y <- c(-1,2,0,0,-2,-1) z <- factor(y,levels=c(-2,-1,0,1,2)) qplot(z) For me, the resulting plot is ordered: -1,2,0,-2
2009 Sep 02
1
get function to return object "name"?
Dear list, I've written a function that plots subjects. Something like: myplot <- function(subject) { plot(subject) } Subjects are vectors, e.g. ... s1 <- c(200,200,190,180) ... and plotting them works fine, e.g. ... myplot(s1) Now I want to have "s1" etc appear in the plot title, but I don't know how to refer to this generically (the object "name"? I tried
2008 May 19
1
Startin R from .RData in linux
Hi! Is it possible to start R by clicking the .RData file in linux as in Windows? I've tried with ubuntu hardy using the right button and selecting R, but does not work. Is there any way to set it up? (I know R can by started from the terminal, selecting the appropriate directory). Thanks Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole
2008 Sep 08
1
Beginner graphics device questions.
Please forgive me if this has been asked before but I could not readily find an answer. First, from the example I was able to determine that graphics device commands such as plot can be redirected using 'png' and 'bmp' type commands. I tried this and it works as I understand it. The question is how this graphics device works. If I issue another 'plot' command will it also
2008 Sep 08
2
Pie chart and labels
With a pie chart pie(c(11, 15, 16, 29, 31)) how can I generate labels for the chart, such as orange: 11 green: 15 blue: 16 red: 29 purple: 31 rather than the default labels that are drawn automatically 1 2 3 4 5 -- Mark Polishook, D.M.A. Technology Coordinator Morehead Hall, Rm 132 Center for Academic Advising and Adult Learning Montclair State University Montclair, NJ 07043 (973)-655-7114
2008 Oct 31
1
Digest setting won't "take"
I've been trying to set my email setting to Digest Mode for a while, but it doesn't seem to "take". I log through to the "Unsubscribe or edit options" button on the Web interface to the R-help mailing list page. I scroll down to the "Set Digest Mode" box and change the radio button to "On". I click the "Submit My Changes" button
2008 May 25
3
need help for building R in Ubuntu 8.04
Hi everyone I have been trying to build R in ubuntu 8.04 from its source code but am getting the following error. configure: error: --with-x=yes (default) and X11 headers/libs are not available Please help me and consider me a newbie in linux thanks in advance [[alternative HTML version deleted]]
2008 May 25
3
need help for building R in Ubuntu 8.04
Hi everyone I have been trying to build R in ubuntu 8.04 from its source code but am getting the following error. configure: error: --with-x=yes (default) and X11 headers/libs are not available Please help me and consider me a newbie in linux thanks in advance [[alternative HTML version deleted]]
2008 May 19
3
Rank Values in a Matrix
Dear All, a short and maybe simple question: I have to rank all values in a matrix from 0 to X, [1] [2] [3] [4] [1] 0.1 2 0 3 [2] 50 3 3 1 [3] 100 1 1 0 [4] 100 2 2 0 0->0 0.1->1 2->2 3->3 50->4 100->5 (X=5) is there any function for this? i have looked in several packages (vegan, labdsv etc.) because I am working with species by site tables,
2008 Sep 06
3
I don't know how to run a r-code written in emacs
Hi, I just installed R, I'm work in UBUNTU and I don't have idea about how to run a r-code written in emacs into the shell. Well I am in a shell, and obviously I can run simple commands over there, Must I compile the program? if yes, How must I do that? what is the extension? I really appreciate your help -- View this message in context:
2008 Sep 08
3
Saving functions
Hi, Appologies for the simple nature of this question, I am unable to find the answer in manuals (EG and introduciton to R). I have written a function in a text editor and saved it with an .R extension. It is saved in my working directory. How can I run it, do I need to use source? If so, how do I supply the arguments to the function? Or does it need to be saved in a particular directory?
2008 Sep 26
4
include scripts into main file (the LaTeX way)
Dear R-people, I want to use an idea from LaTeX in the work flow with R. It is possible in LaTeX to have a main file from which other files are called (ie included). So for example if you have book, the main index file would call each chapter separately. Is there something comparable in R that follows the above 'include' idea from LaTeX? A main file that calls parts of an analysis or
2008 Sep 26
2
axis in a normal plot
Hi I have a small problem, I'm new in using R, so I hope you can help me... I'm running a logistic regression model and want to do a nice plot. The plot I have made is done a plot with the command jitter: plot(jitter(overto$age[overto$sex=="F"]),jitter(overto$neg.pos[overto$sex=="F"]),xlab="age",ylab="neg and pos") my responsvariable is positive
2008 Sep 01
3
another histogram question
Hi there, I hope this question is not as stupid as the one before ... I tried to shorten my histogram (because the distribution is quite skewed and I simply don't want to see the long tail but still use the histogram plot). How can I do something like this? (The example does not work but I don't know why...) data <- rnorm(100) # as example, of course this is not skewed... h <-