Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with rescaling #28

Open
camcecc opened this issue Jun 27, 2019 · 0 comments
Open

Error with rescaling #28

camcecc opened this issue Jun 27, 2019 · 0 comments

Comments

@camcecc
Copy link

camcecc commented Jun 27, 2019

Hi @ricardo-bion, I have a problem with rescaling... can you help me? I'm not so good in R, so maybe there's something I'm missing :)

genus <- read.delim("per_radar-chart.txt")
genus_radar <- genus %>%
  mutate_each(funs(rescale), -Group) %>%
  select(1:5) %>%
  ggradar()

What I get is a fancy radar plot with only values 0 or 100%, not even a middle one... while my data file is:

Group	Bacteroides	Faecalibacterium	Unclassified Ruminococcaceae	Ruminococcus	Escherichia	Unclassified Clostridiales	Akkermansia	Unclassified Lachnospiraceae	Roseburia	Dialister	Coprococcus	Oscillospira	Unclassified Rikenellaceae	Veillonella	Clostridium	Streptococcus	[Ruminococcus]	Blautia	SMB53	Parabacteroides	Phascolarctobacterium	Megamonas	Citrobacter	Lachnospiraceae (other)
HC	18.82899325	19.60617616	8.940147657	7.249336029	0.988030541	6.865308901	1.631560454	4.483545652	3.265902473	3.56638604	2.428487019	3.348809198	2.354368114	0.412104445	0.757058557	0.514498255	1.19583613	1.395051977	0.291326573	1.072784808	0.5056626	0.000374976	0.06799222	0.744098443
GSD	14.42678147	7.435798578	5.266405696	1.422892644	10.01335203	0.289875818	6.264758224	1.410419752	1.49970791	1.644507887	2.800174931	0.635045002	1.871660707	4.72936867	3.937134304	4.155349914	2.520429148	1.826753366	3.049466559	0.839257497	1.584002305	5.643196915	5.331207737	0.516412005

Can you help me? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant