You can use sec_axis()
function, but have in mind that all secondary axes must be based on a one-to-one transformation of the primary axes.
If you need more specific help please provide a minimal REPRoducible EXample (reprex). A reprex makes it much easier for others to understand your issue and figure out how to help.