Discrete transforms have different defaults than those used by scales::trans_new(). discrete_identity_trans() is probably the only useful discrete transform.

trans_discrete_new(
  ...,
  breaks = identity,
  minor_breaks = function(breaks, limits, n) NULL,
  format = identity,
  domain = c(-Inf, Inf)
)

discrete_identity_trans()

Arguments

..., breaks, minor_breaks, format, domain

See scales::trans_new().