u/Pretend-Gap8764

geom_col() messing up the age variable
▲ 0 r/rstats

geom_col() messing up the age variable

Hi! I'm new to R and I'm trying to plot mutation subtypes with the age variable for a melanoma dataset. The code runs perfectly fine but I don't understand why the the geom_col() function keeps plotting weird numbers for age? especially since I plotted this for a subset specifically. I tried using the geom_bar() function and it worked but I think it plotted the number of observations I had over the actual age as a variable.

Can anyone help with this? Thank you!

https://preview.redd.it/ciiqjh56rt1h1.png?width=1758&format=png&auto=webp&s=ec0a8410cbfbdaa503d216646df3761c9f5d0062

reddit.com
u/Pretend-Gap8764 — 5 days ago
▲ 2 r/usyd

Is this plagiarism

Hi! So I have a paper due Monday. A lot of the points that support my argument are in sources I’ve used for another paper before. Is it plagiarism if I use points from the same sources similar to the ones I’ve used in a paper before? does that count as recycling?

reddit.com
u/Pretend-Gap8764 — 14 days ago
▲ 14 r/rstats

Hi! I'm working on a project rn and I need to calculate the mean for specific rows in a column for a hugeee dataset, but all the tutorials I've seen ask you to painstakingly type out the exact rows you need for calculations. That works for smaller datasets but mine has over 1000 rows and i'm NOT doing all that and i'm p sure there's a faster way to do it. I just need to calculate the mean oil price in 2023 for various countries. The countries aren't the problem, i just need a way to tell R to compute the mean for all the oil price values for 2023 specifically.

reddit.com
u/Pretend-Gap8764 — 24 days ago