Near infrared femtosecond laser is employed to ablate highly oriented pyrolytic graphite (HOPG) in ambient air and in vacuum respectively. The recorded transient emission spectra of the ablated plume with a time resolution of 2 ns indicate that the effects of air on the plume are dependent on both time and species. This finding provides important insights into the generation and decay mechanisms of different carbon radicals or clusters. At 1 or 2 ns after the laser pulse strikes the target, air weakens the Swan bands of C2 compared with the case in vacuum, an effect that may be caused by the quenching collisions between air molecules and C2 radicals. This result shows that C2 may be mainly generated by direct spallation from the target surface at the early stage of ablation. Emission spectra at large time delays present that the existence time of the Swan bands in air is longer than the lifetime of the upper electronic state of the Swan system, suggesting that the air-involved three-body recombination and collisional excitation that enhance the generation of emitting C2 overcome quenching collisions at large time delays. A spectral band at ~416 nm assigned to the transition from 1Σ u + to X 1Σ g + of C15 is more intense in air than in vacuum, indicating that C15 clusters are generated at least partially by the combination of smaller clusters in air. It is also found that air-assisted heat transfer makes the temperature of carbon clusters decrease more quickly in air than in vacuum, leading to a much shorter lifetime of the continuum in air.