R: need finite 'ylim' values in function

前端 未结 1 1781
情话喂你
情话喂你 2020-12-11 03:14

I\'d like to plot the data in data.frame xy for each group (defined by ID). When a year before 1946 is in a group, plot 2 should be ex

相关标签:
1条回答
  • 2020-12-11 04:03

    In plot1, change y = range(x$VALUE) to y = range(x$VALUE, na.rm=TRUE) to remove NA missing values.

    You have another problem, namely that in both functions you refer to ind[[i]], which I assume means at some point this code was part of a loop. My guess is all the references to ind[[i]] should be x.

    0 讨论(0)
提交回复
热议问题