It would be tough to know your exact problem without an example, but you can usually specify grouping variables in the aes argument with color = or fill =. There are some examples here
color =
fill =
Some advice for making a reproducible example: here