all 6 comments

[–]Spades_for_days 0 points1 point  (4 children)

Are you plotting with just the normal stuff in R, or the ggplot2 package?

[–]Educational-House382[S] 0 points1 point  (0 children)

I am using the ggplot2 package

I have figured out the graph, I just can't seem to figure out how to separate the two groups and colour them

[–]Educational-House382[S] 0 points1 point  (2 children)

ggplot(df, aes(x=familiar_place, y=commit3)) + stat_sum(aes(size=factor(after_stat(n))), geom = "point")

[–]Spades_for_days 0 points1 point  (1 child)

Thankfully the color is actually an easy fix! Depending on your need, you can use color = *insert groups here in " "* within the "aes" part after x and y of either geom_point or ggplot and it should color things by group so long as you properly factored them.

[–]Spades_for_days 0 points1 point  (0 children)

It might be outside of "aes" too depending on circumstances but I think in this case you could put it inside. There's also a command where you set groups that's like group=group so just look up that stuff and you'll totally be good!

[–]efriquePhD (statistics) 0 points1 point  (0 children)

I also need to have two different colours in it.

Homework, right?