Make your years numeric, not character.
Then
plot(Year, AnnualInflation, type='l')
(don't need the data frame for this plot)
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 3/14/14 11:15 AM, "Miguel A. Buitrago"
wrote:
Dear R-helpers,
here is a novice question. I want to plot a two variable graph: year and
Inflation Rate.
I created two vectors which I combined into a data frame:
Year <- c("1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997",
"1998", "1999", "2000", "2001", "2002", "2003", "2004", "20
2 matches
Mail list logo