RDF for two molecules

Dear my friends,
The RDF command in lammps is to calculate the rdf between two atoms not two molecules. However, I found in lots of papers that they show RDF picture between two molecules.
How is that can be done in lammps?
Thanks a lot.