Remaking boxplots on log scale

Hi all. Sorry if my question is silly but I made a boxplot in RStudio using the following command,

with(valung, boxplot(valung$t ~ as.factor(cell)))

where t is time.

Now I wish to remake the boxplot using time on a log scale and I have no clue how to do that. I tried the command,

with(valung, boxplot(valung$log(t) ~ as.factor(cell)))

but obvioulsy that gave me an error. Does somebody have an idea on how I can convert time to log scale and remake my box-plot?

Please let me know if you do not have enough information to help me out and I can include more in the comments section if I am unable to edit this post.

Thanks in advance.

Have you tried this instead?

with(valung, boxplot(log(t) ~ as.factor(cell)))

OMG that worked, thank you so much! Wish I had posted on here sooner, I was only playing around with my code all day!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.