Re: [R] second legend in biplot

2020-12-10 Thread PIKAL Petr
fort. > > > > Cheers > > Petr > > > > > -Original Message- > > > From: Jim Lemon > > > Sent: Wednesday, December 9, 2020 11:37 PM > > > To: PIKAL Petr > > > Cc: R mailing list > > > Subject: Re: [R] se

Re: [R] second legend in biplot

2020-12-10 Thread PIKAL Petr
rienced in grid graphics. > > > > Best regards > > Petr > > > > > -Original Message- > > > From: Jim Lemon > > > Sent: Monday, December 7, 2020 9:53 PM > > > To: PIKAL Petr > > > Cc: R mailing list > > >

Re: [R] second legend in biplot

2020-12-09 Thread Jim Lemon
his second factor in the legend. > > Probably the last resort is to rewrite original code which I would like to > avoid as I am not so experienced in grid graphics. > > Best regards > Petr > > > -Original Message- > > From: Jim Lemon > > Sent: Monday,

Re: [R] second legend in biplot

2020-12-09 Thread PIKAL Petr
December 7, 2020 9:53 PM > To: PIKAL Petr > Cc: R mailing list > Subject: Re: [R] second legend in biplot > > Hi Petr, > Here's an attempt, using the example in biplot.princomp: > > biplot(princomp(USArrests)) > > par("usr") > [1] -497.2263 624.88

Re: [R] second legend in biplot

2020-12-07 Thread Jim Lemon
Hi Petr, Here's an attempt, using the example in biplot.princomp: biplot(princomp(USArrests)) > par("usr") [1] -497.2263 624.8856 -497.2263 624.8856 legend(-180,600,c("State","Crime"),lty=1,col=c("black","red")) Jim On Mon, Dec 7, 2020 at 6:23 PM PIKAL Petr wrote: > > Dear all > > I try to ma

[R] second legend in biplot

2020-12-06 Thread PIKAL Petr
Dear all I try to make fviz_pca_biplot with 2 (or more) legends. Below is data and the code, which gives one legend (colour) for coating variable and correctly shows triangles and circles for size variable. But this is not shown in the legend. Hopefully somebody could help. And before you ask, I