To color your UMAP-clustered points in QGIS based on the p_0, p_1, ..., p_9 cluster labels from your CSV data, follow these steps:
🔹 Step-by-Step Instructions:
1. Load Your CSV as a Layer (if not done yet)
- Go to Layer > Add Layer > Add Delimited Text Layer...
- Browse to your CSV file
- Choose the X and Y fields (e.g.,
x, y or longitude, latitude)
- Click Add, and then Close once it appears in the Layers panel.
2. Check the Attribute Table
- Right-click your CSV layer and select Open Attribute Table
- Verify that there is a column (e.g.,
cluster) showing values like p_0, p_1, ..., p_9
3. Apply Categorized Styling Based on Cluster
- Right-click the layer in the Layers panel
- Choose Properties
- Go to the Symbology tab
- At the top, change the Renderer type from ‘Single Symbol’ to Categorized
- For the Value, select the cluster column (e.g., your column with
p_0 to p_9)
- Click the Classify button — QGIS will automatically assign colors to each category
- Optional: Customize symbols or colors manually if needed
- Click Apply and OK
✅ Result:
Your UMAP-clustered points will now be colored according to their cluster membership (e.g., p_0, p_1, ..., p_9), making it visually easier to distinguish clusters on the map.
Let me know if your cluster labels are in a different format or stored across multiple columns (e.g., multiple p_X columns instead of a single “cluster” column), and I can adjust the steps accordingly.