0

Working in R on a data frame with two columns, unit price, units sold as UP and US respectively. The more units sold the less the price tends to be. I am trying to plot this relationship any way I can in R.

I have played around with corr() but cant seem to generate anything that makes sense.

The data looks like this:

data

What is the easiest way to plot this relationship?

benson23
  • 16,369
  • 9
  • 19
  • 38
  • 1
    Package `corrplot`, function `corrplot`. See also, for instance, [here](https://r-coder.com/correlation-plot-r/). – Rui Barradas Jan 25 '21 at 17:12
  • 1
    Please read [this post](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) on how to ask a good question in R. Particularly, please include a reproducible example by editing the output of ``dput(head(data))`` into your original question. This will help people trying to answer your question. Thanks. – user438383 Jan 25 '21 at 18:00

0 Answers0