Displaying 20 results from an estimated 200 matches similar to: "Replacing all NA values in a matrix"
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
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
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
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
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 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
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
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 May 10
2
Video troubles after 7.5 upgrade using CR repo
Hi,
Our desktop clients are running CentOS 7 with the Xfce desktop from
EPEL. The CR repository is enabled. A few days ago I launched an update,
which brought in close to 1 GB of packages.
I had some weird problems on two clients. One is an old Dell Optiplex
330 with a legacy video card.
[root at cybermule:/] # lspci | grep -i vga
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc.
2019 Jan 21
7
[Bug 109407] New: GTX 1050 fails to initialise acceleration
https://bugs.freedesktop.org/show_bug.cgi?id=109407
Bug ID: 109407
Summary: GTX 1050 fails to initialise acceleration
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: nouveau at
2004 Jun 22
3
Regression Modeling query
Hi All
I received a raw data set with one record per tennis player (both male and
female) and then i cured it by aggregation i.e by 4 age groups, 2 gender
levels and 6 income levels. Gender and Income are categorical variables.
Please advise me how to use 'R' to model this data set (Actually, i want to
know the right regression technique and steps to do that, including removing
2014 Jan 30
2
[PATCH] drm/nouveau: set irq_enabled manually
On Thu, Jan 30, 2014 at 3:33 AM, Daniel Vetter <daniel at ffwll.ch> wrote:
> On Thu, Jan 30, 2014 at 1:53 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> Since commit 0fa9061ae8c ("drm/nouveau/mc: handle irq-related setup
>> ourselves"), drm_device->irq_enabled remained unset. This is needed in
>> order to properly wait for a vblank event in the
2011 Jul 29
1
Using libvirt with a preexisting network infrastructure
I have a server running Ubuntu natty (libvirt 0.8.8) with separate
ethernet interfaces. I have created an unnumbered bridge for each
interface, these are connected to an already established network
infrastructure, with preexisting DHCP and DNS services.
I would like to handle *establishment* of these bridges outside libvirt
(via /etc/network/interfaces), but still have them defined as networks
2010 Jun 30
1
Some missunderstanding in the wiki page
Hi,
I'm not in the list and I just would like to comment it to the comunity. So,
if someone want to contact me, make CC to me in the reply.
The wiki page [1] talk about networking, and show two typical configurations:
"virtual network" and "shared physical device".
The shared physical device has an error or something that could make confused,
I think. What I want to