search for: perwez

Displaying 10 results from an estimated 10 matches for "perwez".

Did you mean: perez
2008 Jun 19
4
Controlling the length of line with abline(lm())
Hi I just realized that when I use linear regression to draw a line through my data points with something like the following: abline(lm(y ~ x)) the length of the line is infinite, i.e., the line goes beyond the smallest and the largest data values. This seems not very right to me (not to mention it looks unaesthetic). I do not mean to imply that the straight-line behavior of my system is
2008 Jun 10
3
Plotting multiple continuous lines with symbols
Hi, I am trying to plot multiple lines on one plot such that all lines are of the same color (black) and continuous. I need to distinguish these multiple plots from each other by using different symbols (I am using pch=). However, all my lines are broken on both sides of the symbols. This unfortunate (and unsightly) behavior seems to be the default. In my search of the help archives for R over
2009 Dec 05
1
R packages and assess to data in packages
Hi Everyone, I have two very basic questions and would appreciate your help. 1. I would like to see/access the data that comes with a given R package by using a function like read.table(). For example, I just installed car package from CRAN. I know that somewhere within the package, there is Duncan.txt file. I would not only like to look at it from file browser (or using ls command in shell) but
2008 Jun 18
1
Help with axis labels
Hi I have patched together (from various sources) the following code to get semi-logarithmic plot. Unfortunately, my labels come out also at intermediate places between 10^2, 10^3, 10^4 etc. Since I put the code together from various sources and do not understand fully how the code is working, I have not been able to get rid of the labels like 10^1.69897, 10^2.69897 etc. I would appreciate if
2008 Jun 04
2
Superscript/Subscript in main title
I have been trying to figure out how to get superscript/subscript in the main title for a plot. I have tried various approaches and suggestions but none of them work. I am trying to get the following as the main title of my plot: Emission of CO2 with time (but note that 2 is subscript.) I have tried plot(main="Emission of C"expression(O[2]) "with time") and I get error
2009 Nov 15
1
Help with unstack() function
Hi Everyone, I am trying to understand the unstack() function but after struggling for two days, I have given up. More specifically, I am trying the exercises at the end of Chapter 1 of Data Analysis and Graphics Using R by Maindonald and Braun, 2nd ed. Exercise 18 (p. 41) asks to unstack the Rabbit data frame from the MASS package to get a certain data frame that is shown in the exercise.
2010 Oct 04
1
Error message with scan() function
Hi Everyone, I am new R user and am trying to learn by reading the online manual "An Introduction to R" from the R web site. I am trying to practice using the scan() function as explained in the manual. For this I first created three vectors (one a character vector and two numeric one) and saved file "input.dat" in my working directory as: > label <- c("Bill",
2009 Oct 25
2
Help with history() in Emacs/ESS
Hi Everyone, I am a beginner running R 2.9.2 under Ubuntu and typically use Emacs w/ESS. However, I am confused with history() command. When I issue command history() in Emacs within an R session, this is what get: > history() Error in savehistory(file) : no history available to save Similarly, history(max=10) command gives the same error message. However, there is this In/Out Menu in the
2008 Jun 16
1
Specifying fonts in R
Hi I am a novice user of R. I got hold of "R Graphics" by P. Murrell the other day and am trying to follow examples in the book. In chapter 3, the section on font specification gives 16 "basic" font families and face combinations available in R (Figure 3.9). However, the book also warns that even if a font specification is given, it does not mean that the font will always be
2008 Jul 16
1
Help Updating and Installing R Packages
Hi Everyone, I have a few fairly basic questions about upgrading and installing R packages. First off, I am using Ubuntu Hardy Heron and have R 2.7.1 installed and working perfectly. I usually access R via Emacs ESS interface which I am still trying to get the hang of. My questions and issues are as follows: Question 1: I started R and wanted to upgrade the installed R packages. So, I issue the