I have a data frame x that came from read.csv. It seemed to read in ok but
then I tried doing some plotting of the values and ran into difficulties.
The plot command seems to be plotting factors instead of the values. How do
I get rid of these factors ? The plot command I use is : plot (x$dat, x$TX,
type='l'). I also tried ...plot(x$dat, levels(x$TX), type='l) but got an
error :
What am I doing wrong here ?
Error in plot.window(...) : need finite 'ylim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
head(x,4)
Period PA NJ MD TX
All dat
1 200812 903,231 1,985,460 905,422 3,312,088 7,106,201 2008-12-31
2 200901 880,491 1,924,111 892,980 3,006,050 6,703,631 2009-01-31
3 200902 883,994 1,926,169 890,021 3,247,530 6,947,714 2009-03-03
4 200903 888,021 1,901,182 892,593 3,216,730 6,898,526 2009-03-31