If $R$ is a finitely generated algebra over a field $k$ that is an integral domain, it is known that the Krull dimension of $R$ is equal to the transcendence degree of the field of fractions of $R$ over $k$. See for example this question.
Now, let $R$ be a finitely generated algebra over a domain $A$ that is also an integral domain, and such that the homomorphism from $A$ to $R$ is injective. Let $F, K$ be the quotient fields of $R$ and $A$ respectively. I want to determine whether Krull dimension of $R$ coincides with trascendence degree of $F$ over $K$.
I think there must be cases in which they don't coincide, because I have always seen this result with $A$ being a field, but I am not able to find an example. I have thought in $R$ as the polynomial ring with $n$ indeterminates over $A$.