About fviz_famd_ind()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

About fviz_famd_ind()

Mahmood Naderan-Tahan
Hi

I use fviz_famd_ind() from factoextra and I would like to know

1) How can I decrease the font size?

2) How to increase max.overlaps?


ind <- get_famd_ind(res.famd)
fviz_famd_ind(res.famd, col.ind = "cos2",
              gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
              repel = TRUE)


Regards,
Mahmood

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: About fviz_famd_ind()

Sarah Goslee
The way to start is looking at the help for that function, which includes:

... Arguments to be passed to the function fviz()

so you may have more low-level control through those arguments. If
fviz() itself doesn't do what you want, it also allows you to pass
additional arguments to its lower-level functions. If you go down far
enough, you should be able to control everything.

Sarah

On Sun, Mar 21, 2021 at 1:12 PM Mahmood Naderan-Tahan
<[hidden email]> wrote:

>
> Hi
>
> I use fviz_famd_ind() from factoextra and I would like to know
>
> 1) How can I decrease the font size?
>
> 2) How to increase max.overlaps?
>
>
> ind <- get_famd_ind(res.famd)
> fviz_famd_ind(res.famd, col.ind = "cos2",
>               gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
>               repel = TRUE)
>
>
> Regards,
> Mahmood
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--
Sarah Goslee (she/her)
http://www.numberwright.com

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: About fviz_famd_ind()

PIKAL Petr
Hallo

However sometimes it could be easier to fine tune simple biplot function.

fit <- prcomp(iris[,-5])
biplot(fit, col=c("white", "grey"), xlim=c(-.15,.15), ylim=c(-0.05, .05),
expand=1)
points(fit$x[,1:2]*3, pch=c(17, 19)[as.numeric(iris$Sepal.Length<6)+1],
col=c(2,4)[as.numeric(iris$Petal.Length<5)+1], cex=2)
box()

You could use various pch, col and cex for points. You could annotate points
with text function. You could add legends.

Cheers.
Petr

> -----Original Message-----
> From: R-help <[hidden email]> On Behalf Of Sarah Goslee
> Sent: Sunday, March 21, 2021 8:30 PM
> To: Mahmood Naderan-Tahan <[hidden email]>
> Cc: [hidden email]
> Subject: Re: [R] About fviz_famd_ind()
>
> The way to start is looking at the help for that function, which includes:
>
> ... Arguments to be passed to the function fviz()
>
> so you may have more low-level control through those arguments. If
> fviz() itself doesn't do what you want, it also allows you to pass
additional
> arguments to its lower-level functions. If you go down far enough, you
should

> be able to control everything.
>
> Sarah
>
> On Sun, Mar 21, 2021 at 1:12 PM Mahmood Naderan-Tahan
> <[hidden email]> wrote:
> >
> > Hi
> >
> > I use fviz_famd_ind() from factoextra and I would like to know
> >
> > 1) How can I decrease the font size?
> >
> > 2) How to increase max.overlaps?
> >
> >
> > ind <- get_famd_ind(res.famd)
> > fviz_famd_ind(res.famd, col.ind = "cos2",
> >               gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
> >               repel = TRUE)
> >
> >
> > Regards,
> > Mahmood
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> Sarah Goslee (she/her)
> http://www.numberwright.com
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.