Using group in scatter plots correctly?

Hi!

To do this I would need to split my data some way, and I am not sure how to do it correctly in Julia. In Matlab I would use “~” to get reverse indices, i.e. if I have a vector of 0 and 1, then using “~”, I could switch it to 1 and 0 - hope it makes sense.

How would I do that in Julia?

Kind regards