r/HomeworkHelp • u/sametimes3 University/College Student • Sep 12 '26
Computing [university level statistics (statistical coding using “R”)] is there anything missing from my code that would make the shape of my box plot more evident?
the line that cuts off is: levels= c(“first year”, “second year”, “third year”, “fourth year”), ordered = TRUE)
i am very new to R and my professor gave the class a reference sheet of codes for questions that we can modify, but i am not aware of ways to alter the scale(?) of graphs like i am trying to do with this box plot. any help would be appreciated!
1
Upvotes
•
u/AutoModerator Sep 12 '26
Off-topic Comments Section
All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.
OP and Valued/Notable Contributors can close this post by using
/lockcommandI am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Poopywaterengineer Sep 12 '26
You flipped the axis labels, which confused me for a bit, but the reason the plot looks like that is because the daily screen time variable is all NA values because of the line where you set the factor levels. Look at line 55.