Dear All, I would be grateful if you can tell how can I suppress the legend (automatically created) when I plot a groupedData. suppose that I have data farme df_0 which contains the following columns: ID represents the clusters, t represents time of observation, Y: the variable of interest and X a binary covariate. Then: df_1 <- groupedData(Y ~ t | ID) plot(df_1, outer ~X) This gives me the plot (Y ~ t) for each cluster with a legend containing all the clusters. How can I drop the legend? Thanks you very much, Bernard, --------------------------------- [[alternative HTML version deleted]]
On 3/9/06, Marc Bernard <bernarduse1 at yahoo.fr> wrote:> Dear All, > > I would be grateful if you can tell how can I suppress the legend > (automatically created) when I plot a groupedData. > > suppose that I have data farme df_0 which contains the following columns: > ID represents the clusters, t represents time of observation, Y: the > variable of interest and X a binary covariate. Then: > > df_1 <- groupedData(Y ~ t | ID) > > plot(df_1, outer ~X) > > This gives me the plot (Y ~ t) for each cluster with a legend containing > all the clusters. > > How can I drop the legend?key=FALSE. See ?plot.nfnGroupedData or ?plot.nffGroupedData (whichever is appropriate according to the class(df_1)) for details. Deepayan