ns am make the efforts to draw a an easy boxplot of viral load and also trial arm, but keep gaining this error "Error in x + x :non-numeric debate to binary operator".

You are watching: Error in x[floor(d)] + x[ceiling(d)] : non-numeric argument to binary operator


PatientID trial_arm viral_load 1 society 192 clinic 193 society 194 club 645 clinic 326 clinic 297 clinic 928 society 199 clinic 1910 club 27When I operation the password :

> boxplot(dataset,viral_load~trial_arm)Error in x + x : non-numeric debate to binary operatorThe trial_arm variable is collection as a factor and also viral_load is numeric.



The equipment by jay.sf in the comment works. Girlfriend would likewise need to usage ggplot() as soon as running your code to create the boxplot, ie ggplot() + boxplot(viral_load ~ trial_arm, dataset)


Thanks for contributing response to ridge Overflow!

Please be certain to answer the question. Carry out details and also share your research!

But avoid

Asking for help, clarification, or responding to various other answers.Making statements based upon opinion; ago them up with recommendations or personal experience.

See more: When Can You Sit After Bbl ? How Long Until You Can Sit Again After A Bbl

To learn more, view our advice on writing an excellent answers.

post Your prize Discard

By click “Post your Answer”, you agree to our terms of service, privacy policy and also cookie plan

Not the price you're looking for? Browse other questions tagged r boxplot statistical-test or asking your very own question.


site style / logo © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.11.26.40833

Stack Overflow works best with JavaScript enabled

her privacy

By clicking “Accept every cookies”, girlfriend agree stack Exchange have the right to store cookie on your machine and disclose information in accordance through our Cookie Policy.