g***@gmail.com
2018-08-30 04:27:02 UTC
Hi,
I'm having this error then i check i did use aes. Anyone hv anyidea about
this ? Thanks.
+ contributions_id = "Sample",
+ mappingfile_fp =
"C:/Users/UMSBIOTECH/Desktop/Shared_Folder/CaseControl/Picrust/MetagenomecontriKEGG/Mapping_File_CASE_CONTROL_edit.txt",
+ mappingfile_id = "NAME")
Importing files...
Converting identifiers to names...
Adding names to table...
Adding metadata to table...
+ mutate(Contribution_perc = ContributionPercentOfAllSamples * 100) %>%
+ filter(Contribution_perc >= 0) %>%
+ select(Gene, family, Contribution_perc) %>%
+ mutate(Contribution = Contribution_perc/sum(Contribution_perc) * 100)
%>%
+ ggplot(arrange(contributions, family), aes(x = SampleType, y =
Contribution, fill = family)) +
+ geom_bar(stat = "identity") +
+ theme(axis.text.x = element_text(size = 6)) +
+ scale_y_continuous(expand = c(0, 0), limits = c(0, 100)) +
+ theme_light(base_size = 18) +
+ scale_fill_brewer(palette = "Set1")
Adding missing grouping variables: `SampleType`
Error: Mapping should be created with `aes() or `aes_()`.
Regards,
Goh
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm having this error then i check i did use aes. Anyone hv anyidea about
this ? Thanks.
contributions <- analyze_contributions(contributions_fp =
"C:/Users/UMSBIOTECH/Desktop/Shared_Folder/CaseControl/Picrust/MetagenomecontriKEGG/Galaxy2-[Normalize_by_Copy_Number_on_data_1]_bt.txt",+ contributions_id = "Sample",
+ mappingfile_fp =
"C:/Users/UMSBIOTECH/Desktop/Shared_Folder/CaseControl/Picrust/MetagenomecontriKEGG/Mapping_File_CASE_CONTROL_edit.txt",
+ mappingfile_id = "NAME")
Importing files...
Converting identifiers to names...
Adding names to table...
Adding metadata to table...
# Plot contributions
contributions %>%
+ group_by(Gene, SampleType) %>%contributions %>%
+ mutate(Contribution_perc = ContributionPercentOfAllSamples * 100) %>%
+ filter(Contribution_perc >= 0) %>%
+ select(Gene, family, Contribution_perc) %>%
+ mutate(Contribution = Contribution_perc/sum(Contribution_perc) * 100)
%>%
+ ggplot(arrange(contributions, family), aes(x = SampleType, y =
Contribution, fill = family)) +
+ geom_bar(stat = "identity") +
+ theme(axis.text.x = element_text(size = 6)) +
+ scale_y_continuous(expand = c(0, 0), limits = c(0, 100)) +
+ theme_light(base_size = 18) +
+ scale_fill_brewer(palette = "Set1")
Adding missing grouping variables: `SampleType`
Error: Mapping should be created with `aes() or `aes_()`.
Regards,
Goh
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.