[R-sig-Fedora] R Scatter plot partially generated in Fedora

Nara Rama nara at cloudbiosciences.com
Fri Mar 26 20:48:30 CET 2010


Hi:

I have installed R first time in Linux/Fedora. I used the yum command
(yum install R). The installation was successful and went without any
errors. I could also run the following R script without any errors.
But, the generated scatter plot only has three blue dots added through
the first plot(...) statement. It does not show the main title,
x-/y-axes, x-/y-labels, and also the green dots added through
points(...) statement.

I don't know if this is an installation problem. Please help.

Linux version:
===========

Linux domU-12-31-39-03-00-76 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15
12:39:36 EST 2008 i686 athlon i386 GNU/Linux

R version:
========

Installed Packages
Name       : R
Arch       : i386
Version    : 2.8.0
Release    : 2.fc8

R Script:
=======

png(filename="a.png", height=295, width=300,  bg="yellow");
x <- c(12, 14, 16);
y <- c(7, 12, 10);
plot(x, y, col="blue", main="Test", xlab="X", ylab="y");
x2 <- c(10, 15);
y2 <- c(8, 12);
points(x2, y2, col="green");
dev.off();

Thanks

Nara



More information about the R-SIG-Fedora mailing list