-1

I am trying to create a box plot of the variable Institutions conditioned on the variable Success. within a csv file that is read into R with the variable data

Institutions range from 0-100 and success is either a 1 or 0.

Could you help me make them conditioned?

  • 1
    It would be much easier for others to work on your question if you add an example. Please provide a reproducible example – Ross_you Oct 30 '20 at 02:44
  • It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Oct 30 '20 at 02:47

1 Answers1

0

Is this what you're trying to do?

## Create sample data
institutions <- runif(10, 0, 100)
success <- sample(x = c(0,1), size = 10, replace = TRUE)

## Create a boxplot
boxplot(institutions ~ success)

example.png

jared_mamrot
  • 14,156
  • 3
  • 17
  • 38