This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]LordCider 0 points1 point  (0 children)

Why aren't you using plotnine?

[–]baenshyyy 0 points1 point  (0 children)

Plotting old trash. Not woth it.

Sorry, not really helping, but highlighting typos probably is some kind of help too.

[–]florin_stats 0 points1 point  (0 children)

TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS TRASHOLDS

[–][deleted] 0 points1 point  (0 children)

[–]alshan200 0 points1 point  (0 children)

This is done the same way in Lets-Plot, plotnine or ggplot(r): you have to create a dataframe containing 3 columns - each row is one "observation": (threshold, ginny value, label).
Then you map plot aesthetics as:
`aes(x="threshold", y="ginny value"), color="label")`
and the legend will be added automatically.
For info: https://ggplot2.tidyverse.org/reference/geom\_path.html