What function is used to change plot figure location in R? I have a plot and it looks good, but I need to change the location of the plot, what function should I use? I generated the graph using:
df<-read.csv("./data/games.csv")
plot(df$cream_rating,df$charcoal_rating, pch=19, col=c("red","black", "green") [df.1$winner])
legend(x="topleft", legend = levels(df$winner), col=c("red","black","green"), pch=19)
options(repr.plot.width=9, repr.plot.height=9)
rated turns victory_status winner increment_code cream_rating
charcoal_rating opening_name
<lgl> <int> <fct> <fct> <fct> <int> <int> <fct>
1 FALSE 13 outoftime cream 15+2 1500 1191 Slav Defense: Exchange Variation
2 TRUE 16 resign charcoal 5+10 1322 1261 Nimzowitsch Defense: Kennedy Variation
3 TRUE 61 mate cream 5+10 1496 1500 King's Pawn Game: Leonardis Variation
4 TRUE 61 mate cream 20+0 1439 1454 Queen's Pawn Game: Zukertort Variation
5 TRUE 95 mate cream 30+3 1523 1469 Philidor Defense
6 FALSE 5 draw draw 10+0 1250 1002 Sicilian Defense: Mongoose Variation