similar to: cbind() and factors.

Displaying 20 results from an estimated 3000 matches similar to: "cbind() and factors."

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
2004 Nov 16
3
Simple plot() question
Hi First a simple question to do with plot(). How do I change the x-axis labels on a plot? For example, I am plotting each row of a matrix, and I want each row to be a line on my graph. Simple really. Eg: plot(sg[1,], type="l") When I do this, the x-axis is labelled 1:38, as I have 38 columns in my matrix. When I do: plot(sg[1,order(sg[1,])], type="l") Ideally I would
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
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
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 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
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
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
2010 Oct 13
2
total newbie issue with Cortado player using new java 1.6.0_22
is anybody else having problems with the new java 1.6.0.22 ? i am tried both cortado-ovt-debug and cortado-ovtk-debug - neither seem to work anymore once i installed the new java. once i go back to the old java 21 everything works fine. my jar file downloads for console messages (below) came from: http://downloads.xiph.org/releases/cortado/cortado-ovtk-debug-0.6.0.jar i have included
2018 Nov 04
13
[Bug 108651] New: Screen flickering when using compositor with OpenGL backend
https://bugs.freedesktop.org/show_bug.cgi?id=108651 Bug ID: 108651 Summary: Screen flickering when using compositor with OpenGL backend Product: Mesa Version: unspecified Hardware: All OS: Linux (All) Status: NEW Severity: normal Priority: medium Component:
2010 Apr 29
2
Cloning very slow?
Yesterday I cloned one of my VMs and, somewhat implausibly, it took virt-clone something like 8-9 hours to clone the 8Gb disk image... Copying it from the command line took a mere 6.5 minutes. I assume this is a bug, and it's not expected to take this long ;-) This was using virt-clone from python-virtinst-0.500.2-1.fc12.noarch in the virt-preview repository. Tom -- Tom Hughes (tom at
2017 Jun 10
3
[Bug 101372] New: nouveau?/DRI3?: dual monitors unusable without running compton --paint-on-overlay (sometimes)
https://bugs.freedesktop.org/show_bug.cgi?id=101372 Bug ID: 101372 Summary: nouveau?/DRI3?: dual monitors unusable without running compton --paint-on-overlay (sometimes) Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: critical
2017 Jun 08
0
Rainbow in loop
Does: rainbow(3)[1] rainbow(3)[2] rainbow(3)[3] ... solve your issue? B. > On Jun 8, 2017, at 8:20 AM, WRAY NICHOLAS <nicholas.wray at ntlworld.com> wrote: > > Hi R folk I have a distance time graph for a locomotive and at various times > different events occur on board the loco. I want to put a vertical line on the > speed time graph for each event, but I
2014 Apr 18
1
How to use rainbow function without the gamma argument
Hi, I am using a old code (probably written for R 2.5) and it stops when calling rainbow() with gamma argument. I saw that gamma argument is not present in newer version of R rainbow function. How can I translate this line of code: rainbow(100, s = 1.0, v = 0.75, start = 0.0, end = 0.75, gamma = 1.5) ? It fails with: Error in rainbow(100, s = 1, v = 0.75, start = 0, end = 0.75, gamma = 1.5) :
2017 Jun 08
2
Rainbow in loop
Hi R folk I have a distance time graph for a locomotive and at various times different events occur on board the loco. I want to put a vertical line on the speed time graph for each event, but I want to colour each different kind of event differently to see visually whether there's any pattern to these events happening. I could just create a vector of colours and use abline which is easy
2009 Nov 30
3
Assign palette (e.g. rainbow) to a series of points on 1 plot
I have 11 vectors representing insect survival probabilities in response to different levels of toxins at 10 concentrations lx100=c(1,1,1,.8,.5,.4,.2,0) day100=c(0,1,2,3,4,5,6,7,8) lx90=c(1,1,1,1,.9,.8,.6,.4,.2,.1,0) day90=c(0,1,2,3,4,5,6,7,8,9,10) #...and so on10% and a zero (control) series lx0=c(1,1,1,1,1,1,.9,.9,.8,.8,.6,.5,.4,.3,.2,.1,.1,0)
2003 Oct 23
6
repeating colors in graph 2
I've tried looking at ?colors and ?palette and if I'm understanding it correctly, I'm supposed to type in (for example) palette(rainbow(13)) before I type in my plot (of 13 lines) if I want 13 different colors. But this does not work. Other things that i have tried besides rainbow give me errors. Am I just doing something completely wrong? Anna