[R] Suppress legend in plotting groupedData
deepayan.sarkar at gmail.com
Thu Mar 9 20:30:02 CET 2006
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.
More information about the R-help