Hi, I am trying to plot a scatter plot with 4 variables. It looks a bit like this right now.
X and Y are continuous variables, while Z and T are logical (0,1) variables. Each data point is basically a [X, Y, Z, T] vector. These data are in an excel file in tidy format.
I'd like to plot a scatter plot such that X,Y are on the axes, the dots or bubbles are a different color based on Z and a different size/symbol based on T. I can plot the scatter plot with just the X and Y fine now using just the scatter (X,Y) function, but have been having trouble customizing for the other variables in here. Any help will be appreciated. Happy to provide any more details or clarifications if that helps!