I want to label tumor samples with red square marker and normal samples with green circle.
My code generates circle symbols for both tumor and marker. How do I label the markers correctly?
import plotly.express as px
X_meth_kipan = meth_450_10k_kipan.iloc[:,9:-1].dropna(axis=1)
pca = PCA(n_components=2)
components = pca.fit_transform(X_meth_kipan)
fig = px.scatter(components, x=0, y=1, color=meth_450_10k_kipan["type"], color_discrete_sequence=["red", "green"], symbol_sequence=["square", "circle-open-dot"], width=600, height=600)
fig.update_xaxes(automargin=True)
fig.update_yaxes(automargin=True)
fig.update_layout({'plot_bgcolor': 'rgb(240,240,240)','paper_bgcolor': 'rgb(240,240,240)',})
fig.show()

