Here is a list of 100 command prompts for creating a wide variety of data visualizations, categorized by their analytical purpose.
1. Comparison (Comparing values and categories)
Create a vertical bar chart of [total sales] for each [product category].Generate a horizontal bar chart to rank [countries] by [population].Plot a grouped bar chart to compare [sales] and [profit] for each [region].Generate a diverging bar chart to show [profit margin] for [products], centered at zero.Create a lollipop plot to compare [metric Y] for [category X] (for a less cluttered look).Plot a bar-line combo chart to show [sales (bars)] and [growth rate (line)] on the same plot.Create a bullet graph for [KPI] showing [current value] vs. [target value] and [performance ranges].Compare [Group A] and [Group B] using side-by-side box plots.Create a radar chart to compare [N features] for [three different products].Plot a slopegraph to compare the change in [ranking] for [items] between [Time 1] and [Time 2].Generate a dot plot to compare [values] across [categories] with minimal clutter.Create a table-bar chart (bar plot within a table) to show [metric] for each [item].
2. Distribution (Visualizing the spread of data)
Plot a histogram of [age] to see its distribution.Generate a density plot (KDE) for [price] to see the shape of its distribution.Create a histogram with [20] bins for [variable].Overlay a normal distribution curve on the histogram of [data].Plot a box plot (box-and-whisker) for [salary] to identify median, quartiles, and outliers.Generate a violin plot for [test scores] by [class] to show both the distribution shape and the box plot.Create a swarm plot (strip plot) for [data] (best for small datasets).Plot an Empirical Cumulative Distribution Function (ECDF) for [variable].Generate a Q-Q plot to check if [data] follows a normal distribution.Create a rug plot to show the distribution of individual points on a single axis.Plot a histogram of the [log-transformed variable] to handle heavy skew.Generate a joyplot (ridgeline plot) to show the distribution of [metric] for [multiple categories].
3. Relationship (Exploring links between variables)
Create a scatter plot of [variable X] (e.g., ad spend) vs. [variable Y] (e.g., sales).Add a linear regression line (trendline) to the scatter plot of [X] and [Y].Generate a 2D density plot (heatmap) for a large scatter plot to show point density.Plot a bubble chart using [X-axis], [Y-axis], and [Z-variable (as bubble size)].Color the scatter plot points based on [categorical variable] (e.g., 'Region').Create a scatter plot matrix (pairs plot) for [list of variables] to see all pairwise correlations.Generate a correlation matrix (heatmap) for all numerical features.Plot a hexbin plot for [X] and [Y] to handle overplotting in large datasets.Create a contour plot to show 3D data (X, Y, Z) in 2D.Plot a 3D scatter plot with [X], [Y], and [Z] axes.Generate a connected scatter plot to show the relationship between [X] and [Y] over [time].Plot a co-occurrence matrix (heatmap) for [words/items].
4. Composition (Showing part-to-whole breakdowns)
Create a pie chart showing the [market share] of [companies].Generate a doughnut chart for [metric] broken down by [category].Plot a 100% stacked bar chart to show the [percentage composition] of [categories] for each [group].Create a 100% stacked area chart to show the change in [composition] over [time].Use a treemap to visualize [file sizes] within [folders] (hierarchical composition).Generate a sunburst chart to show hierarchical data for [category] and [subcategory].Create a waffle chart (square pie chart) to show [percentage] as a grid.Plot a mosaic plot to visualize the relationship between [two categorical variables].Generate a stacked bar chart (non-100%) to show [total] and [components] for each [category].
5. Change Over Time (Visualizing time-series data)
Plot a line chart of [stock price] over the [last year].Generate a multi-line chart to compare [metric] for [Group A] and [Group B] over [time].Create a stacked area chart to show [total sales] broken down by [region] over [time].Plot a step chart for [data] that changes at discrete intervals (e.g., interest rates).Generate a candlestick chart for [stock data] (Open, High, Low, Close).
Create a Gantt chart to visualize [project tasks] and [timelines].Plot a streamgraph to show [topic] volume over [time] (a variant of a stacked area chart).Decompose the [time-series variable] into [trend], [seasonality], and [residual] plots.Plot an Autocorrelation (ACF) plot for the [time series].Plot a Partial Autocorrelation (PACF) plot for the [time series].Create a heatmap of [metric] by [day of week] and [hour of day].Generate a horizon graph for [N time series] in a compact space.Plot a calendar heatmap to show [daily metric] (e.g., steps) over a [year].Create a cycle plot to visualize seasonal patterns over time.
6. Geospatial (Plotting data on maps)
Create a choropleth map of [USA] shaded by [population density].Generate a bubble map showing [city locations] with [population (as bubble size)].Plot a connection map (arc map) showing [flight routes] from [origin] to [destination].Create a simple scatter plot on a map using [latitude] and [longitude] points.Generate a heatmap layer on a map to show the [density] of [events] (e.g., taxi pickups).Plot a cartogram based on [metric] (distorting geography to show size).Create a dot density map for [population distribution].Plot [N] small multiples maps, one for each [year/category].
7. Flow & Process (Showing movement and funnels)
Generate a Sankey diagram to show the [flow] from [source] to [destination] (e.g., user journey, energy flow).Create a funnel plot to visualize [drop-off rates] in the [sales/conversion] process.Plot a dependency graph (network diagram) of [nodes] and [edges].Generate a chord diagram to show [relationships] and [flow] between [entities].Create a simple flowchart for the [business process].Plot a directed network graph (digraph) to show [process flow].Generate a waterfall chart to show the cumulative effect of [positive/negative] changes.
8. Statistical & Model-Based (For ML and stats)
Plot the ROC curve and calculate the AUC for the [classification model].Generate a confusion matrix as a heatmap.Plot the Precision-Recall (PR) curve.Create a plot of [residuals] vs. [predicted values] for the [regression model].7E.Plot the [Elbow Method] curve to find the optimal [k] for [K-Means].Generate a silhouette plot for the [clustering] results.Plot the [learning curve] for the [model] showing [train] vs. [validation] score.Plot the [feature importance] from the [Random Forest model] as a horizontal bar chart.Generate a dendrogram for the [hierarchical clustering] model.Plot a 2D decision boundary for the [classifier].Plot a partial dependence plot (PDP) for [feature] in the [model].
9. Text Visualization (For NLP)
Create a word cloud from [text data] (weighted by frequency).Generate a bar chart of the top [20] most frequent [words/n-grams].Plot a t-SNE or UMAP visualization of [document/word] clusters.Create a heatmap of [keyword] frequency by [document].Plot a network graph of [character/word] co-occurrences.Generate a sentiment analysis bar chart showing [positive/negative/neutral] counts.
10. Formatting & Styling (Modifying existing plots)
Set the title of the plot to "[Title]" and add a [subtitle].Label the X-axis as "[X-Label]" and the Y-axis as "[Y-Label]".Set the Y-axis to a logarithmic scale.Add a horizontal (or vertical) line at [value] to mark a [threshold/average].Annotate the [peak/specific point] on the plot with the text "[Annotation]".Change the plot style/theme to [e.g., 'seaborn-darkgrid', 'ggplot', 'fivethirtyeight'].Create a "small multiples" plot (faceted plot) of [charts] broken down by [category].Rotate the X-axis labels 45 degrees for readability.Combine [Plot 1] and [Plot 2] into a single dashboard with [2 rows, 1 column].
No comments:
Post a Comment