I am trying to create a coordinate plot in R that shows all four quadrants. What I need is different from anything I've seen in typical data visualizations. I have attached a picture example of what I need to achieve.
You'll notice that there are no negative values because each quadrant is representing different variable combinations with scores ranging from 0 to 25.
I have not found an example of what I need to do, so I don't have 'tried and failed' code, but I have a sample data set in wide and long format depending on what the solution would require. I looked at plots in ggplot2, but I could only plot using 2 variables. I am not sure how to represent all 4 variables using something like geom_point.
I only want to show the coordinates for one person at a time, so I do not want everyone's score from the dataset to be plotted at once.
Any ideas on how to approach this is greatly appreciated!
Sample data:
df <- data.frame(
name = c("Donald", "Minnie", "Pluto"),
varA = c(3, 6, 15),
varB = c(4, 17, 6),
varC = c(26, 21, 13),
varD = c(10, 19, 19)
)
library(reshape2)
dflong <- melt(df, id.vars='name', measure.vars=c("varA", "varB", "varC", "varD"))

