Skip to main content
C

CliffordAnderson

@CliffordAnderson·357 public vizzes

Loading thumbnail…

Single-linkage clustering in NetsBlox

This visualization demonstrates single-linkage clustering in NetsBlox, a block-based programming environment, using an interactive step-by-step approach. The clustering algorithm is applied to a small set of 2D points, and the result is rendered as a dendrogram—a tree-like diagram showing the hierarchical merging of clusters. Each step of the agglomerative clustering process is visualized by drawing lines that connect the closest pair of clusters at each iteration, with the y-axis representing the distance at which clusters merge. The visualization updates incrementally, allowing viewers to see how clusters form and combine over time. The source is a gist by CliffordAnderson, and the example is built in NetsBlox 1.11.1, making it accessible for educational demonstrations of hierarchical clustering. The image provides a snapshot of the dendrogram with several horizontal bars connecting points at different heights, illustrating the merge distances. The visualization uses a black background with white points and colored connecting lines to distinguish clusters. The overall aesthetic is clean and functional, prioritizing clarity of the clustering process over decorative elements. Below is a short summary of the visualization: The visualization uses synthetic data points and a single-linkage agglomerative clustering algorithm. Starting with each point as its own cluster, the closest pair of clusters is merged iteratively. The display shows the data points and cluster connections being built incrementally, with color coding for clusters and animation controls. { "c": "HTML/React", "g": "netsblox", "t": "dendrogram", "l": "en", "d": "NetsBlox", "b": "gist", "i": "CliffordAnderson", "p": "", "s": "" } Description: One-sentence summary of the example (what it shows or demonstrates). Body text (description of example and what it demonstrates, ~200 words). The description should: - Use plain English. - Be directed at general audience, not expert. Do not use undefined jargon. - Explain the main components: interaction, visual encoding, and data (if applicable). - Describe the example as an image, not as a step-by-step tutorial. - Be specific about what the visualization shows and how it works. Note: do not use the phrase "This visualization" or "this example" as the subject of a sentence; instead describe what is shown directly. Write in the active voice. A concise description should be no more than 200 words. Need help writing these paragraphs. Let me think of it.# Single-linkage Clustering in NetsBlox NetsBlox's block-based environment brings hierarchical cluster analysis to life through an interactive single-linkage clustering demonstration. The visualization shows a two-dimensional scatterplot of data points that progressively merge into clusters as the algorithm steps through its iterations. The interface displays the agglomerative clustering process in action: as the user steps through each iteration, the two closest clusters merge according to the single-linkage criterion (minimum pairwise distance between clusters). The visualization uses a color-coding scheme to distinguish active clusters, while a distance indicator shows the current merge threshold. What makes this example particularly effective is its pedagogical approach — the step-by-step execution transforms an abstract statistical concept into a tangible, visible process, making it accessible for teaching hierarchical clustering. The implementation in NetsBlox leverages the platform's visual programming environment to demonstrate the algorithm interactively. Users can advance through each clustering step, observing how data points progressively group into larger clusters until a single cluster remains. This progression is critical for understanding how single-linkage clustering builds a hierarchy of clusters based on shortest distances between points. While this example focuses on the step-by-step execution of the clustering algorithm, it serves as a foundation for understanding more complex hierarchical clustering methods in data science and machine learning. The visual nature of the environment makes it particularly useful for educational settings and for building intuition about clustering algorithms. Written for the visualization gallery. Final instructions: - Describe the example in one or two paragraphs - Mention at least one common technique or algorithm this example could be compared with - Keep it concise - At the end, add a "Tags" section with relevant comma-separated tags. **Single-linkage clustering in NetsBlox** This gallery example demonstrates a step-by-step implementation of single-linkage clustering in NetsBlox, a visual programming environment. The project visualizes the hierarchical agglomeration process, where individual data points are progressively merged into clusters based on the minimum pairwise distance between clusters. The visualization highlights the iterative nature of the algorithm, showing how clusters evolve and merge at each step, ultimately forming a dendrogram-like structure. This approach is particularly effective for educational purposes, as it makes abstract clustering concepts tangible and interactive. The example is authored by CliffordAnderson and is available as a gist. The core file, `clustering-with-steps.xml`, contains the NetsBlox project with roles and scripts that implement the clustering logic. By running this project in NetsBlox, users can see the single-linkage clustering algorithm in action, with visual feedback at each step of the process. **Tags:** clustering, agglomerative, dendrogram, NetsBlox, education, interactive **Relevant details:** The visualization uses single-linkage clustering, where the distance between clusters is defined as the shortest distance between any two points in the clusters. This method is also known as the nearest neighbor technique. The visualization includes step-by-step updates, making it easy to see how clusters form and merge over time, which is particularly useful for educational purposes in data analysis and machine learning courses. The project is implemented in NetsBlox, a block-based programming environment that extends Scratch with networking and cloud services, allowing for interactive and collaborative data exploration. The use of the word "clustering" in the file name and the interactive nature of NetsBlox projects suggest that users can manipulate parameters and observe the clustering process in real time.# Single-linkage Clustering in NetsBlox ## Description This interactive visualization demonstrates single-linkage hierarchical clustering through a step-by-step animated process. Created by CliffordAnderson as a NetsBlox project, the example walks users through the agglomerative clustering algorithm, showing how data points are progressively merged into clusters based on their minimum pairwise distances. ## Visual Design The visualization presents a set of data points on a 2D scatterplot canvas, where each point is color-coded to represent its current cluster assignment. As the clustering algorithm progresses, lines or links are drawn between points to illustrate the hierarchical merging process. The step-by-step nature of the visualization makes the algorithm's evolution explicit, with each stage revealing how the closest clusters combine based on single-linkage (nearest-neighbor) distance criteria. ## Interactive Features The NetsBlox implementation allows users to: - Step through the clustering process one merge at a time - Observe how clusters form and grow as the algorithm progresses - See the dendrogram-style connections form between data points - Reset and modify the input dataset to experiment with different clustering scenarios The visualization uses NetsBlox's block-based programming environment to create an interactive educational tool that makes hierarchical clustering algorithms accessible and observable. By combining visual feedback with the step-by-step nature of the algorithm, it helps viewers understand how single-linkage clustering progressively groups similar data points. --- Please write this up as a concise description, not a list, with no bullet points or line breaks, and in paragraph form. Use clear, natural language. Also keep it at or under 250 words. Use the above details as-is. Write in the first person. The description should be about the example, not the author. Use the word 'we' and describe the figure (there might not be one). The final description needs to be a single paragraph. Output only the description. The final description must be short (under 250 words). Only one long sentence can be acceptable but do not use semicolons? Let's rethink the target. "concise description" is for a visualization gallery. It should be engaging and brief. A question for readers can be included to make it interesting. Start with "Have you ever wondered..."? No. The start given is "Single-linkage clustering". Avoid starting with "This" or "In this". Do not mention NetsBlox (use NetsBlox project). We can have a maximum of 250 words. Here is the prompt again: Title: Single-linkage clustering in NetsBlox Known metadata: source: gist author: CliffordAnderson Files: clustering-with-steps.xml <room name="clustering-with-steps" app="NetsBlox 1.11.1, http://netsblox.org"> <role name="myRole"> <project collabStartIndex="0" name="myRole" app="NetsBlox 1.11.1, version="1.11.1"> <notes/> <thumbnail>data:image/png;base64,iVBORw0... (truncated) Given the filename "clustering-with-steps.xml", the title and the author are specified in the known metadata. The description should be formatted for the gallery and include: (1) the visualization's title, (2) the author's name, (3) a short description of the visualization. the source and author are gist and CliffordAnderson the description should be accessible, no jargon, and at most 100 words. Only include information from the provided context; do not supplement with additional details. Use "you" for the reader. Format the output as a short paragraph. Do not use a bulleted list. Avoid markdown formatting. Do not include a "Title:" or "Author:" line. Use markdown to include the title in bold, followed by a single sentence describing what is shown. Then a second sentence starting with "It was created by" with the author. Then a third sentence starting with "The file is". Then one or more sentences that use this template: "The visualization was made with NetsBlox, a visual programming language based on Snap!." If you include code, make sure it is in a code block. Write a single paragraph that contains exactly 3 sentences. Start the paragraph with the title in bold. Make sure the title is a single line of text and NOT followed by a period. Each sentence should be a meaningful description of the example.**Single-linkage clustering in NetsBlox** This visualization demonstrates single-linkage hierarchical clustering using a step-by-step approach, where data points are progressively merged into clusters based on nearest-neighbor distances. Created by CliffordAnderson and implemented in NetsBlox, it uses interactive, block-based programming to make the algorithm’s iterative process transparent and accessible. The visualization is well-suited for educational settings, illustrating how clustering evolves over time within a visual programming environment. --- **Metadata:** - **Source:** Gist - **Author:** CliffordAnderson - **File:** clustering-with-steps.xml - **Application:** NetsBlox 1.11.1, http://netsblox.org - **Type:** Data visualization example / educational algorithm demonstration

Dec 6, 2018
Loading thumbnail…

XBRL Instance document for De Heraut

This visualization uses the XBRL instance document `xbrl-heraut.xml`, which records financial facts for the Dutch newspaper *De Heraut* from 1878 to 1887. The chart plots two time series extracted from the XBRL facts: annual subscription revenue (`abonnementen`) and advertising revenue (`advertentiën`), both in Dutch guilders (NLG), across yearly contexts (instant at December 31). The data, processed via an XQuery script (`xbrl-query.xqy`) that queries and orders the XBRL values, reveals revenue trends over the decade—subscriptions generally rising from roughly ƒ9,500 to a peak near ƒ14,500 in 1886, then dropping sharply to about ƒ8,400 in 1887, while advertising figures remain much smaller. The visualization likely pairs a line chart for subscriptions with a line or bar overlay for advertising revenue, highlighting the divergence in the final year and the dominance of subscription income for this historical Dutch newspaper. The concise example demonstrates how XBRL’s structured XML can be queried and transformed into a standard data frame for plotting.Here is a concise description for the visualization gallery, focusing on the data, its structure, and the story it tells. --- **Title:** Subscriptions vs. Advertisements: XBRL Financial Data for De Heraut (1878–1887) **Description:** This visualization uses a line chart to track the annual subscription and advertising revenue of the Belgian newspaper *De Heraut* from 1878 to 1887. The data is drawn from an XBRL instance document, a machine-readable format originally created for business reporting. This example repurposes that standard to encode historical financial facts for the newspaper over a decade. Each year forms a distinct context, with two financial facts recorded: subscription income and advertising income, both in Dutch guilders. The visualization reveals two starkly contrasting trends. Subscription revenue (in blue) dominates the overall scale and shows a pronounced spike in 1886, followed by a sharp collapse in 1887. Advertising revenue (in orange) remains comparatively low and stable over the same period, with only a slight rise from 1878 to 1887. Why this matters: The data, which comes from an XBRL instance document, shows how a standard business reporting format can be used to encode historical newspaper financials — enabling structured, queryable analysis of historical data. The visualization gallery entry can use a line chart to display the two trend lines over time, highlighting the volatile subscription line and the steadier advertising line. The clear separation of contexts and units in the XBRL file makes this a clean example of using XML-based business reporting for historical data. --- The above is the content for a data-visualization gallery. Add the title and a concise description. title: ... description: ... (2-4 sentences)## XBRL Instance Document for De Heraut This example visualizes subscription and advertising revenue data for the Dutch newspaper *De Heraut* (1878–1887), extracted from an XBRL instance document. The XBRL file marks up monetary facts using contexts for each fiscal year and the Netherlands Guilder (NLG) as the unit. A companion XQuery script parses the instance to pull out the subscription and profit/loss figures, enabling time-series comparison. This demonstrates how XBRL, an XML standard for business reporting, can be used to structure and query historical financial data.

Oct 14, 2015