Stats: 3,229,333 members, 8,081,689 topics. Date: Tuesday, 18 February 2025 at 11:50 PM |
Nairaland Forum / Science/Technology / Programming / What Could Be Wrong With This? (343 Views)
What Is Wrong With This Line Of Code? / Da Fuk Is Wrong With This Board? Useless Threads Everywhere!! / Please Help Look At My Code (what is wrong with my code ) (2) (3) (4)
(1) (Reply)
What Could Be Wrong With This? by lazynairalander1: 5:25pm On Feb 03, 2023 |
I keep getting error on my console after typing in this line of code. library(tidyverse) data() view(msleep) name(msleep) list(msleep) msleep %>% drop_na(vore) %>% ggplot(aes(x = vore))+ geom_bar(fill = "#97B3C6" ![]() #coord_flip()+ theme_bw()+ labs(x = "vore", y = NULL, title = "Number of Observation" ![]() #Flip your chart msleep %>% drop_na(vore) %>% ggplot(aes(x = vore))+ geom_bar(fill = "red" ![]() coord_flip()+ theme_bw()+ labs(x = "vore", y = NULL, title = "Number of Observation" ![]() #create your chart in order msleep %>% drop_na(vore) %>% ggplot(aes(fct_infreq(vore)))+ geom_bar(fill = "green" ![]() #coord_flip()+ theme_bw()+ labs(x = "vore", y = NULL, title = "Number of Observation" ![]() msleep %>% drop_na(vore) %>% ggplot(aes(fct_infreq(vore)))+ geom_bar(fill = "green" ![]() #coord_flip()+ theme_bw()+ labs(x = "vore", y = "Total sleep", title = "Number of Observation" ![]() #change the label of X axis msleep %>% drop_na(vore) %>% ggplot(aes(x = vore))+ geom_bar(fill = "#97B3C6" ![]() #coord_flip()+ theme_bw()+ labs(x = "who eats what?", y = NULL, title = "Number of Observation" ![]() msleep %>% ggplot(aes(x = awake))+ geom_histogram(binwidth = 2, fill = "#97B3C6" ![]() theme_bw()+ labs(x = "Total sleep", y = NULL, title = "Histogram on total sleep" ![]() msleep %>% ggplot(aes(x = awake))+ geom_histogram(binwidth = 2)+ theme_bw()+ labs(x = "Total sleep", y = NULL, title = "Histogram on total sleep" ![]() msleep %>% ggplot(aes(x = awake))+ geom_histogram(binwidth = 2, fill = "#97B3C6" ![]() coord_flip()+ theme_bw()+ labs(x = "Total sleep", y = NULL, title = "Histogram on total sleep" ![]() msleep %>% ggplot(aes(awake))+ geom_histogram(binwidth = 2, fill = "#97B3C6" ![]() theme_bw()+ labs(x = "Total sleep", y = NULL, title = "Histogram on total sleep" ![]() mean("Total sleep" ![]() |
Re: What Could Be Wrong With This? by peacettw: 7:38pm On Feb 03, 2023 |
Use python |
Re: What Could Be Wrong With This? by stanliwise(m): 6:14am On Feb 05, 2023 |
lazynairalander1:Learn how to post code snippets and give more context to things. That is how to ask for help 1 Like |
(1) (Reply)
Salesforce Admin Voucher Exam For Sales / Elon Musk And His Robot Wife Coming Soon / A Billion Dollar Ai Startup Idea You Can Steal.
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2025 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17 |