You have one vector to plot, type_crt , but you are calling on what appears to be 2 data.frames/tibbles, data_crt and bb that we know nothing about.
I do not see how we can help you without a representative example..You can generate the data using a random number generator. We need to see the data structure. The actual data is not important.