My data kind of looks like this (except in a table imported from excel):
x values: E, D, D, C, B, A, A
y values: 0, 1, 2, 3, 5, 7, 8
I get 'Error in plot.window(...) : need finite 'xlim' values'.
I tried to use plot(factor(x), y, type = "p") and am still getting a line instead of a point and a bar where there are two values for the same variable. Making it an ordered list by using factored<-factor(x), ordered = TRUE then plotting plot(factored, y, type = "p") also seems to have no effect and it defaults to alphabetical.
Any help using the plot function would be great. Thank you!


