similar to: Simple plot() question

Displaying 20 results from an estimated 4000 matches similar to: "Simple plot() question"

2005 Jan 05
8
Replacing all NA values in a matrix
OK, dumb question, and it is probably in the docs somewhere, but after 12 months working with R and quite a while looking at the docs, I still don't know (or have forgotten) how to replace all NA values in a matrix at once with some other value. I can do it column by column using is.na(), but I can't figure out how to do it for the whole matrix. My apologies, I am ashamed ;-) Michael
2005 Jan 25
2
Rd problems when converting DVI version
Hi Running R v2.0 on SuSe linux 8.2. I'm trying to build a package (which built perfectly on Windows...) on Linux, and I ran: R CMD check mypackage I got: * checking mypackage-maual.tex ... ERROR LaTeX errors when creating DVI version This typically indicates Rd problems OK, there are no problems with my Rd - I got 3 warnings but they were all expected, and the whole package builds find
2004 Dec 10
4
cbind() and factors.
Hi I'm seeing some "odd" behaviour with cbind(). My code is: > cat <- read.table("cogs_category.txt", sep="\t", header=TRUE, quote=NULL, colClasses="character") > colnames(cat) [1] "Code" "Description" > is.factor(cat$Code) [1] FALSE > is.factor(cat$Description) [1] FALSE > is.factor(rainbow(nrow(cat))) [1]
2003 Jul 07
1
Xvfb and R
Hi I have recently installed and implemented Xvfb (X virtual frame buffer) so that I can create jpegs using R over CGI (SUSE Linux 8.1 and Apache 1.3). I have noticed that in order to do this, a file (Rplots.ps) is created in my cgi-bin directory everytime a cgi script is run. This could cause problems though as I have a multi-user system where it is possible that two different users will run
2004 May 19
7
Help with hclust() and plot()
Hi When I use plot(hclust(dist..)...)...) etc to create a dendrogram of a hierarchial cluster analysis, I end up with a vertical tree. What do I need to do to get a horizontal tree? Also, my users are used to seeing trees who's leaves all "end" at the same place (eg. Like in minitab). Is this possible in R? Thanks Mick Michael Watson Head of Informatics Institute for Animal
2003 Jun 13
4
Using jpeg() function over cgi
Hi I have seen a few posts to this list regarding problems accessing the x11() device over cgi - namely, when trying to create a graphic using the jpeg() function, everything is fine from the command line but it won't work over cgi, producing the error: "Unable to open connection to X11 display" Has anyone actually solved this particular problem satisfactorily? Please reply
2008 Aug 05
1
Greek characters in plots
Hi I am running an R script that creates 100s of graphs, and I need to use the greek CAPITAL letter delta in the mtext() function. I got as far as expression(delta) but this gives me the lowercase version. Can anyone help? I'm using R 2.7 on Windows XP Mick Head of Informatics Institute for Animal Health Compton Berks RG20 7NN 01635 578411
2008 Aug 07
1
Mtext doesn't display characters in italic when I use a greek symbol
Following on from my previous mail! plot(1:10,1:10) mtext("title", side=3, adj=0, font=3, cex=1.5) This works as expected and puts the font in italics. tag <- "A)" suffix <- "genea::" plot(1:10,1:10) mtext(bquote(.(tag) ~ Delta * .(suffix)), side=3, adj=0, font=3, cex=1.5) Here, the font isn't in italics, it's normal. I presume this is some
2005 Jan 05
0
AW: Replacing all NA values in a matrix
Replacing the NA?s with eg. 1 : > a 1 2 3 4 1 20 50 10 80 2 NA 19 NA 49 3 NA 32 NA 61 4 45 101 44 190 a[try(is.na(a)) == TRUE] <- 1 > a 1 2 3 4 1 20 50 10 80 2 1 19 1 49 3 1 32 1 61 4 45 101 44 190 I this can help you, Matthias > -----Urspr?ngliche Nachricht----- > Von: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at
2005 May 05
0
Wilcoxon paired signed rank test and continuity correction
Hi I am applying the wilcoxon paired signed rank test to many sub-groups of a data frame using by() and wilcox.test, and sometimes the test uses continuity correction and sometimes it doesn't. What I want to know is: 1) what is continuity correction? The docs say: correct: a logical indicating whether to apply continuity correction in the normal approximation for the p-value.
2003 Jul 25
5
R won't connect to the internet on SUSE Linux 8.1
Hi Thanks once again for your help, I do appreciate it..... however.... Here is what I get with your test.... (under tcsh - i normally use bash, but I will keep everything the same) users/mwatson> env http_proxy=http://wwwcache.bbsrc.ac.uk:8080/ R >options(internet.info=0) >update.packages() trying URL `http://cran.r-project.org/src/contrib/PACKAGES' unable to connect to
2003 Jul 03
1
General X11 Problems
Hi You may remember a while ago I was having problems with creating jpegs using R over CGI. I solved this on my LAPTOP (*grins*) by - executing "xhost +localhost" from the command line - putting "SetEnv DISPLAY=:0.0" in my httpd.conf (apache) And all worked well. Now I'm trying to move the whole system onto my shiny new server - and encountering yet more problems
2003 Jul 24
3
R won't connect to the internet on Linux!
OK, I really am struggling with this one! Forgive me if I am being stupid.... I am running R 1.7.1 on Suse Linux 8.1. I connect to the internet through a proxy so I have: IAHC-LINUX03:~ # echo $http_proxy wwwcache.bbsrc.ac.uk:8080 IAHC-LINUX03:~ # echo $HTTP_PROXY wwwcache.bbsrc.ac.uk:8080 just in case ;-) SO, i go into R and I get: >
2004 Aug 26
5
Problems with par() and labels with boxplot
Quite a simple one really! When I run boxplot(), the labels on the X axis are horizontal, and I want them vertical. So I did: par(las=3) boxplot(...) And my labels just aren't there anymore.... Any help???
2003 Jul 18
4
R won't connect to the internet
Hi I can't get R to connect to the internet. I am running R 1.7.1 on Windows XP and whenever I try to download packages etc from within R using the internet, it fails. OK so I am behind a firewall and use a proxy server.... SO, if I go to my MS-DOS prompt and type: RGui.exe --internet2 everything works.... BUT i can't set up a shortcut for this as Windows (I hate Windows) complains
2006 Mar 06
2
Problems with heatmap.2 in the gregmisc package
Hi Sorry to revisit an old problem, I seemed to solve this in 2004, only for it to resurface :-S I am trying to plot a heatmap, and I don't want the columns of my matrix re-ordered. The function doesn't seem to behave as the help would have you believe: a <- matrix(rnorm(100),nr=20) a.d <- dist(a) a.hc <- hclust(a.d) a.de <- as.dendrogram(a.hc) # columns are re-ordered
2005 Feb 17
3
A vector or array of data frames
Hi A simple question again, but I can't find it by google-ing R-help. Quite simply, I want to read in the contents of a number of files, using read.table, and assign the results to elements of a vector/array/list/whatever. I want it so that, if my vector/array/whatever is "pos", that pos[1] will give me the first data frame, pos[2] will give me the second etc... Kind of basic
2006 Nov 28
2
Sorting a data frame when you don't know the columns
Hi Sorry to ask such a well oiled question, but even with multiple google hits I don't think this has been answered very well. It's all well and good doing a sort of a data frame on multiple columns when you know in advance which columns you want to sort on, but what about when the names of the columns you wish to sort on are in a vector? At the minute I'm messing about with
2005 Feb 17
6
Converting a list to a matrix - I still don't think I have it right
Hi We have touched on this before, but I don't think I quite got it right. So I have a list, each element of which is a a vector of 2 numbers: > l2 $cat000_a01 [1] 0.3429944 4.5138244 $cat000_a02 [1] 0.1929336 4.3064944 $cat000_a03 [1] -0.2607796 4.1551591 What I actually want to convert this into is a matrix with the names (cat000_a01 etc) as row names, the first element of each of
2005 Feb 03
5
How to convert a list to a matrix
Hi Sorry to ask such a basic question. I have a list, each element of which is a vector of two values. What I actually want is a matrix with two columns, and one row per element of the list. Obviously I have tried as.matrix(), and as.vector() but I didn't expect the latter to work. I feel so lame asking this. Any suggestions? Mick