I have a dataset countnp with 3 columns as below:
>countnp
Time Sections Count
0 0 370
1 0 9
1 1 127
1 2 119
1 3 55
1 4 34
1 5 55
and so on..The values of Time and Sections range from 0 to 7. Now, I want to create a contour plot of Time vs Sections, but I'm getting an error saying - increasing 'x' and 'y' values expected. Here Time and Sections both cannot be sorted at the same time. Please help me with this. The code that I'm using:
>nplevel <- seq(0, 20, 2)
>contour(countnp$Time, countnp$Sections, countnp$Count, levels=nplevel)