  The modification of jet shapes in PbPb collisions, relative to those in pp
collisions, is studied for jets associated with an isolated photon. The data
were collected with the CMS detector at the LHC at a nucleon-nucleon
center-of-mass energy of 5.02 TeV. Jet shapes are constructed from charged
particles with track transverse momenta ($p_\mathrm{T}$) above 1 GeV/c in
annuli around the axes of jets with $p^\mathrm{jet}_\mathrm{T}$ $>$ 30 GeV/c
associated with an isolated photon with $p^\gamma_\mathrm{T}$ $>$ 60 GeV/c. The
jet shape distributions are consistent between peripheral PbPb and pp
collisions, but are modified for more central PbPb collisions. In these central
PbPb events, a larger fraction of the jet momentum is observed at larger
distances from the jet axis compared to pp, reflecting the interaction between
the partonic medium created in heavy ion collisions and the traversing partons.
