michaelkalish / STA

State Trace
1 stars 5 forks source link

Create STA-Plot in R with different point shapes and colors #8

Open benedikt-gailer opened 3 months ago

benedikt-gailer commented 3 months ago

I have conducted a STA-Experiment with a 2 x 3 design (Independent variable A with two levels and independent variable B with three levels). Accordingly, Using R, get a STA-Plot with six points.

I'd like to use two different colors to differentiate the two levels of my independent variable A. This is no problem with the "groups" and "grouplabel" arguments of the staPLOT function.

However, I am wondering whether it is possible to represent different levels of Independent Varible B simultaneously using different point shapes, such as trangle, squares and circles for the three levels.

On page 87 in Dunn & Kalish (2018), figure 7.4 contains a STA-plot of exactly such a problem. The code for this graph is presented in matlab. I couldn't infer the right way to do this in R from the matlab code.

So, is this also possible in R?

Kind regards,

Benedikt Gailer

michaelkalish commented 3 months ago

I'm doubtful it will help, but here is the latest version of staPLOT. Figure 7.4 was a custom job in matlab, and we haven’t replicated it in R ourselves.

Good luck! M

Get Outlook for iOShttps://aka.ms/o0ukef


From: benedikt-gailer @.> Sent: Monday, June 3, 2024 9:58:27 AM To: michaelkalish/STA @.> Cc: Subscribed @.***> Subject: [michaelkalish/STA] Create STA-Plot in R with different point shapes and colors (Issue #8)

I have conducted a STA-Experiment with a 2 x 3 design (Independent variable A with two levels and independent variable B with three levels). Accordingly, Using R, get a STA-Plot with six points.

I'd like to use two different colors to differentiate the two levels of my independent variable A. This is no problem with the "groups" and "grouplabel" arguments of the staPLOT function.

However, I am wondering whether it is possible to represent different levels of Independent Varible B simultaneously using different point shapes, such as trangle, squares and circles for the three levels.

On page 87 in Dunn & Kalish (2018), figure 7.4 contains a STA-plot of exactly such a problem. The code for this graph is presented in matlab. I couldn't infer the right way to do this in R from the matlab code.

So, is this also possible in R?

Kind regards,

Benedikt Gailer

— Reply to this email directly, view it on GitHubhttps://github.com/michaelkalish/STA/issues/8, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYWFSSNYVLXAK77OGKSSNTZFRZAHAVCNFSM6AAAAABIWSKTOOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTCMRTGQ4TGNI. You are receiving this because you are subscribed to this thread.Message ID: @.***>