Rmarkdown not knitting12/27/2023 ![]() ![]() Geom_point, labs, etc.Ĭhart1 <- ggplot(data=myweight) + geom_point(mapping=aes(x=day,y=morning_weight), color='orange') + labs(x="The Day", y="My Morning Weight", title = "My Awesome Weightloss Journey", subtitle = "By Naomi Narcisse")Ĭhart2 <- ggplot(data=myweight) + geom_smooth(mapping=aes(x=day,y=after_workout_weight), color='turquoise') + labs(x="The Day", y="After Workout Weight", title = "Continued. We see how it looks when knitted to a word document. #Lesson learned: Only things pertaining to an function should go into that function. Note that use of setwd() in R Markdown scripts is not recommended it only applies to the code. #Example: ggplot(data=heartrate_seconds_clean) + geom_bar(mapping=aes(y=value), color='purple') But I can't knit to html.īelow is my script code: View(Daily_log_weight) ![]() Any guidance would help Here is my code, I havent changed a single thing after opening the new. Ive tried updating R and RStudio, Im just quite lost. If I run the code in rmarkdown, everything works. This means that RStudio doesnt understand your document is supposed to be an RMarkdown document, often because your file extension is. However, I have never used a package called emo and that package is certainly not in this empty. ![]() I think that means there is a problem with my code, but only when I try to knit. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |