Re: [R] Colorizing different individuals with fviz

2021-03-28 Thread PIKAL Petr
Hi.

You could probably use "col.ind.sup" for this task, however factoextra is
rather rigid in its properties. I still recommend plain prcomp and finetune
biplot with points.
Maybe not so fancy as factoextra but you could format points with shape,
size, colour to characterise some differences.

Cheers
Petr

> -Original Message-
> From: R-help  On Behalf Of Mahmood
> Naderan-Tahan
> Sent: Saturday, March 27, 2021 2:20 PM
> To: r-help@r-project.org
> Subject: [R] Colorizing different individuals with fviz
> 
> Hi
> 
> I use this command to generate a graph of individuals
> 
> 
> ind <- get_famd_ind(res.famd)
> fviz_famd_ind(res.famd, repel = TRUE)
> 
> 
> I would like to know how can I specify different colors for different
> individuals?
> 
> The colorization is not very complex. Basically, I want to specify
rows[1:10] to
> be shown in black and rows[11:20] to be shown in red.
> 
> 
> Any idea about that?
> 
> 
> Regards,
> Mahmood
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org 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.
__
R-help@r-project.org 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.


Re: [R] Spie charts

2021-03-28 Thread Jim Lemon
Hi Ferri,
There are a number of variations on the pie chart. The fan.plot,
radial.pie and starPie functions in the plotrix package are but a few.
There are two really important considerations in using plots like
this:

1) Does the plot illustrate what you want? For example, if you want to
show that more of the A people get COVID than B people, but also that
there are more of them in the population, you could probably do this
with what you are suggesting.

2) Do the viewers get it? This is the most important part. You know
what is happening, but is that information clear to the viewer. Try it
out on unsuspecting co-workers without explanation.

Bert is right, Florence Nightingale's "coxcomb" is an early attempt at
doing this sort of thing.

Jim

On Mon, Mar 29, 2021 at 2:59 AM Ferri Leberl  wrote:
>
> Dear ∀,
> Ist there a function to plot "spie charts" in R?
> https://en.wikipedia.org/wiki/spie_chart
> (These are a combination of pie charts and radial pie charts, where the angle 
> represents one dimension and the radius of the respective sector another 
> dimension)
> Thank you in advance!
>
> __
> R-help@r-project.org 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.

__
R-help@r-project.org 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.


Re: [R] Spie charts

2021-03-28 Thread Bert Gunter
Probably not, for good reason (see remarks below), but you might search on
"nightingale plots"



off topic remarks:
The reason they are a bad idea (imo!) is that the eye is not good at
comparing angles, and this complicates the comparisons by adding radii, and
hence sector areas, into the mix. The example you linked to is nonsense: so
few numbers should not be graphed at all, because a simple table can be
easily and accurately comprehended.

For 2-d quantitative comparisons, a simple scatterplot is much more
effective at conveying the information accurately, assuming there's more
information than can be easily grasped in a small table.

Feel free to address responses and criticisms to me/ Ferri off list. I only
kept my remarks on list so that others could offer their possibly different
perspectives.

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sun, Mar 28, 2021 at 8:59 AM Ferri Leberl  wrote:

> Dear ∀,
> Ist there a function to plot "spie charts" in R?
> https://en.wikipedia.org/wiki/spie_chart
> (These are a combination of pie charts and radial pie charts, where the
> angle represents one dimension and the radius of the respective sector
> another dimension)
> Thank you in advance!
>
> __
> R-help@r-project.org 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.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org 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.


[R] Spie charts

2021-03-28 Thread Ferri Leberl
Dear ∀,
Ist there a function to plot "spie charts" in R?
https://en.wikipedia.org/wiki/spie_chart
(These are a combination of pie charts and radial pie charts, where the angle 
represents one dimension and the radius of the respective sector another 
dimension)
Thank you in advance!

__
R-help@r-project.org 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.


Re: [R-es] poner un código en Internet

2021-03-28 Thread Manuel Mendoza
Gracias Paco. La información que me das me es muy útil. Subí a Zenodo el
código que los revisores de un artículo me piden que haga público. Aquí lo
tenéis, por si alguna vez os fuera de utilidad.
Un saludo,
Manuel

https://zenodo.org/record/4642268#.YGAlB68zbb1

El vie, 26 mar 2021 a las 13:22, Francisco Rodriguez Sanchez (<
f.rodriguez.s...@gmail.com>) escribió:

> Buenos días Manuel,
>
> Hasta donde yo sé, pastebin no garantiza que ese código quede archivado
> y público de manera permanente (https://pastebin.com/faq#18). Tampoco
> GitHub, GitLab, etc. Si es un artículo científico, lo deseable es que
> cualquiera pueda acceder a ese código dentro de 1, 5, ó 10 años. Para
> ello puedes usar repositorios gratuitos y permanentes como Zenodo
> https://zenodo.org/
>
> Parece algo trivial pero el problema de enlaces de internet y scripts de
> código que desaparecen con el tiempo es un problema grave en ciencia
> (https://doi.org/10.1371/journal.pone.0115253)
>
> Saludos
>
> Paco
>
>
> On 26/3/21 5:50, Manuel Mendoza wrote:
> > Gracias Eric y Xavier. Finalmente utilicé pastebin porque es más
> sencillo.
> > Los Gits ofrecen muchas más cosas, pero, de momento, no me hacen falta.
> En
> > una revista me piden, simplemente, que el código de un índice que
> > desarrollamos esté disponible en algún sitio.
> > Lo pongo aquí, por si le interesa a alguien. Permite identificar la
> > existencia de patrones discretos en un espacio multidimensional, así como
> > cuantificar cómo de discretos son los patrones, en caso de que los haya.
> > https://pastebin.com/54fdnp7Y
> >
> > El jue, 25 mar 2021 a las 21:18, Eric ()
> > escribió:
> >
> >> https://pastebin.com/
> >>
> >>
> >>
> >> On 25-03-21 17:07, Manuel Mendoza wrote:
> >>> Buenas tardes (de nuevo), ¿sabéis si hay alguna forma sencilla de poner
> >> un
> >>> código en Internet, al que pueda acceder cualquiera desde un link?
> >>> Gracias,
> >>> Manuel
> >>>
> >>>[[alternative HTML version deleted]]
> >>>
> >>> ___
> >>> R-help-es mailing list
> >>> R-help-es@r-project.org
> >>> https://stat.ethz.ch/mailman/listinfo/r-help-es
> >   [[alternative HTML version deleted]]
> >
> > ___
> > R-help-es mailing list
> > R-help-es@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-help-es
>
> --
> Dr Francisco Rodríguez-Sánchez
> https://frodriguezsanchez.net
>
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es