User talk:RCraig09

Click at right to show/hide useful links

——— SVG:

SVG Text Font Test (by JoKalliauer)


Codes for representing special characters inside SVG <text> declarations:

——— Graphics & video:

20230117 Red- green- and blue-focused color palette

Excel .xlsx spreadsheets that automatically generate XML code for .SVG graphics

Click at right to show/hide content re User:RCraig09/Excel to XML for SVG
Transcluded from User:RCraig09/Excel to XML for SVG:
General concept above; examples below.
Warming stripes
... in a shape
Warming stripes bar chart
Category:Pages using multiple image with auto scaled images
Bar chart
Pie chart
Variable-width bar chart
Category:Pages using multiple image with auto scaled images
Line charts
Scatterplot
Radar chart
Category:Pages using multiple image with auto scaled images

I've uploaded spreadsheets that automatically generate XML code for charts in SVG format.

Summary: You simply paste or enter your data into the spreadsheet, and specify image dimensions, number of grid lines, data ranges, font sizes, etc. The spreadsheets instantly and automatically generate a column of XML code. You simply copy and paste that code into a text editor and save as an ".svg" file. The spreadsheets produce lean SVG code, and should save you time in creating SVG charts. Though my original spreadsheets are written in Microsoft Excel, I've received reports that they also work if read into other spreadsheet programs.

Feedback and suggestions on my talk page are welcome. RCraig09 (talk) 23:41, 19 February 2021 (UTC)

Click HOW TO for detailed explanation.
Click HERE (else HERE) to download the spreadsheets.
Click here to see an example of how the spreadsheets work, internally.
  1. Warming stripes — Accepts a single dataset and converts to SVG code portraying Ed Hawkins' warming stripes graphics. User chooses vertical or horizontal stripes; normal or reverse data ordering; or from a variety of geometric shapes (updated 17 May 2023). . . . . Click here to see examples of warming stripes embedded in different shapes.
  2. Warming stripes bar chart — Accepts a single dataset and creates a conventional bar chart whose individual bars/columns are coloured according to Dr. Hawkins' warming stripes colour scheme. Alternate option: choose one colour for ascending bars and another colour for descending bars. (updated 28 August 2023)
  3. Line charts — Accepts up to six datasets. (updated 30 August 2023)
  4. Vertical bar charts (column charts) — Accepts up to six datasets. Toggle between clustered and stacked charts; user can adjust "Yfloor"—the Y level (usually=0) from which columns rise or fall; user chooses to keep or ignore negative input values. (updated 27 August 2023)
  5. Horizontal bar charts — Accepts up to six datasets. Toggle between clustered and stacked charts; user can adjust "Yfloor"—the value (usually=0) from which bars extend; user chooses to keep or ignore negative input values. (updated 27 August 2023)
  6. Scatter plots — Accepts up to five datasets. (updated 28 August 2023)
  7. Pie charts — Accepts a single dataset of up to 36 items. (updated 28 December 2025)
  8. Variable-width bar charts — Accepts up to six datasets; is like "Vertical bar charts", above, but user can choose different widths for different bars. (updated 27 August 2023)
  9. Radar charts — Accepts up to six datasets. (updated 6 May 2025)
Transcluded from User:RCraig09/Warming stripes in shapes
An Excel .xlsx spreadsheet automatically+ generated the XML code for the following SVG images:
  • The spreadsheet user can toggle a switch to reverse the order of data, so red is in the center (or left side of first graphic) and blue is at the outside (or right side of first graphic).
  • The spreadsheet user can choose height and width (in pixels), to compress or expand shape vertically and horizontally, for example, to change an ellipse to a circle or a rectangle to a square.
  • To download the spreadsheet, go to User:RCraig09/Excel to XML for SVG.
  • Don't try to edit inside this colored box; make any comments about the spreadsheets or graphics at User talk:RCraig09RCraig09 (talk) 20:43, 20 May 2021 (UTC)

Trying to get data for the 2024 election, wanted to ask what you think?

WITHDRAWN:

Closing this discussion, without deleting it. The discussion has not been productive. — JohnAdams1800 (talk • contribs) 02:32, 8 January 2026 (UTC)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Voting by income and gender.
Voting by education and gender.
 Preceding unsigned comment added by JohnAdams1800 (talk  contribs) 02:32, 8 January 2026 (UTC)
Voting by income percentiles. I reproduced the graph using RStudio. Source: How Democrats Became the Party of the Well-to-Do. The New York Times. Retrieved on October 23, 2025.

I have a theory that the crux of the realignment in 2024 was that affluent women voted for Kamala Harris, and lower-income men voted for Donald Trump. The shift among White women with college degrees (8% swing) and Harris winning voters making over $200,000 a year are probably the same shift--affluent women voted for Kamala Harris. I made graphs provided here.

  • The highest-income I can get from exit polls is voters making over $200,000 a year, which is roughly the richest 10-15% of voters. Kamala Harris won women making over $200,000 a year (presumably household income), and to make that much money one needs to have a college degree. There are almost no voters without college degrees once one crosses above $200,000 a year.

Per the NY Times source and my own analysis of exit poll data, my theory seems to be right. People often overlook affluent women, who are a significant voting bloc. Nearly all affluent women have college degrees. Affluent men obviously supported Trump (i.e. White men with college degrees didn't shift), but affluent women as a voting bloc seemed to support Harris.

  • I'm looking at the exit poll data for the 2025 Virginia and New Jersey gubernatorial elections. It seems the shift among affluent women has stuck. Both Spanberger and Sherrill had excellent performances among White women with college degrees, who are mostly the same as affluent women.

I'm a PhD student in statistics, not merely a speculator. I think this is data worth analyzing further. JohnAdams1800 (talk) 02:26, 8 January 2026 (UTC)

@JohnAdams1800: I'm not sure what you're asking for, exactly. It's interesting, but: The first issue that comes to mind is that everything added to Wikipedia must be clearly supported by a reliable source. On first read-through, I don't see all the information in your charts in the NY Times source (hard to tell). Such sourcing should be explicitly included in your file description pages (File:2024IncomeGender.png and File:2024EducationGender.png) here on Commons, and preferably also in captions of the charts in Wikipedia. Second, these charts are a bit complicated, requiring the reader to do a lot of studying to even come to a conclusion; maybe reducing each chart to three line charts would be easier for readers to understand. Third, and related to the second point, you have to be very careful not to enter your own conclusions or projections into Wikipedia content (see No original research); reliable sources should do that. Fourth, text inside graphics should be about as large as the narrative text in which the chart is inserted. Separaately, I notice that the JohnAdams1800 account is blocked on English Wikipedia. I hope these ideas are helpful. RCraig09 (talk) 06:09, 8 January 2026 (UTC)
The data comes directly from the CNN 2024 exit poll (just filter by men and women for income), and the NY Times article. I made the graphs using RStudio. Because higher educational attainment leads to higher income, the higher-income voted to the left of the lower-income. Specifically, higher-income/higher-education women overwhelmingly voted for Harris, and lower-income/lower-education men overwhelmingly voted for Trump.
The NBC News source provides additional evidence for my conclusion based on my analysis of hard data. White men without college degrees (69-29% Trump) and White women with college degrees (58-41% Harris) are on different planets socioeconomically. Compare women with graduate school degrees to men who never attended college.
  • This explains the bizarre situation where Kamala Harris won voters making over $200,000 a year, and Donald Trump won voters making between $30,000-49,999 a year.
Link: https://www.nbcnews.com/politics/elections/steve-kornacki-white-men-white-women-gap-gender-gap-rcna196791 JohnAdams1800 (talk) 15:31, 8 January 2026 (UTC)

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Reviving prior discussion; the education gap is a gender gap

Compare women with college degrees to men without college degrees.

I wanted to ask what you think about making graphs and getting data on the education gap as it relates to gender.

The education gap (college graduates vs. no college degree) is part of the gender gap. Specifically, there are two main groups: women with college degrees ("white-collar women") and men without college degrees ("blue-collar men"), who are socioeconomically on different planets. The other two groups, men with college degrees and women without college degrees, are both fairly evenly split.

It's why White women with college degrees trended towards Kamala Harris in 2024 (a Black woman with a Juris Doctor). It's also why Hispanic men trended towards Trump in 2024. Hispanic men aren't that different, socioeconomically, from White men without college degrees. I had a theory that people vote based on a common sociocultural/educational identity, and my theory was proven correct.

Educational attainment is about more than just getting a degree. It informs how much money people make, who they interact with and their life experiences, what kind of occupations they have, etc. Educational polarization is only weaker than racial polarization in the Southern United States, and more powerful than the gender gap itself. It explains why women with postgraduate degrees voted for Harris 66-32%, and men who never went to college for Trump 68-31%. Obviously the former is much richer than the latter, but they share a common educational identity with Harris (women with postgraduate degrees) or with Trump (blue-collar men like Trump).

Link: https://www.nbcnews.com/politics/elections/steve-kornacki-white-men-white-women-gap-gender-gap-rcna196791

Link: https://www.reuters.com/world/us/trump-gains-with-hispanic-men-harris-up-with-white-women-reutersipsos-polls-show-2024-10-25/ JohnAdams1800 (talk) 12:54, 19 January 2026 (UTC)

@JohnAdams1800: This is an interesting dichotomy, worthy of inclusion in articles such as 2024 United States presidential election. Generally, I'd favor simpler graphics (like those in the NBC News reference) rather than the 5x4 chart at right. RCraig09 (talk) 17:35, 19 January 2026 (UTC)
@RCraig09 I'm not going to make claims about any specific demographic group and a permanent realignment, even with sources. It could just have been that Hispanics responded particularly badly to the 2021-2023 inflation surge. I need more elections (i.e. 2026 midterms) to back up any claims of a permanent realignment of Hispanics.
  • But what I do have are concrete data and graphs that educational attainment must be combined with gender, with sources to back it up. There is a powerful divide among women with college degrees vs. men without college degrees.
I'm still watching elections for how Hispanics are voting. A few counties are pretty good proxies: Imperial County, California; Miami-Dade County, Florida; and South Texas in general. I don't want to make predictions of a permanent realignment of specific demographic groups.
Anyway, thanks for your feedback on my graphs.
Side-note: I got accepted to at least one PhD program in statistics. I'm graduating with my MS in statistics from UIUC in May 2026. JohnAdams1800 (talk) 20:58, 19 January 2026 (UTC)
@JohnAdams1800: In case it's not apparent from my post of 06:09 8 Jan: we editors should not be making our own "claims" about anything. There are a few charts that could be properly be inserted into election-related Wikipedia articles, but we should narrowly tailor our captions and narrative text to what reliable references state. We must leave our personal interpretations and conclusions out. RCraig09 (talk) 21:36, 19 January 2026 (UTC)

I have found a mistake in an image you uploaded

The image is File:18980826 Mrs. Felton Speaks - lynching - The Wilmington Weekly Star.jpg and is from Newspaperarchive.com. The errant date occurred because the original creator put together an article from 1898 along with a caption that states "Transcript of August 11, 1898 speech of Mrs. W.H. Felton". I have consulted several sources (including August 12, 1897 newspapers) & they all agree that the speech occurred on August 11, 1897. Here are the URLsː

Atlanta Journal, August 12, 1897 - https://www.newspapers.com/image/968860250/?clipping_id=136379114&terms=thousand&match=1
US Senate - https://www.senate.gov/artandhistory/senate-stories/rebecca-felton-and-one-hundred-years-of-women-senators.htm
Wilmington1898 - https://www.1898wilmington.org/AlexanderManlyRebeccaFelton.shtml
Savannah Morning News, August 12, 1897 - https://www.newspapers.com/image/852586073/

The 1897/1898 issue occurred because Southern newspapers, leading up to the Fall 1898 elections, reprinted Rebecca Felton's speech to drum up opposition to black suffrage and a black newspaper wrote an editorial against it and then the Wilmington massacre occurred. I have removed the image from the Rebecca Felton article and the Wilmington massacre article on Wikipedia and wanted you to know why. Shearonink (talk) 07:20, 7 February 2026 (UTC)

So User:Shearonink, by changing the legend from "August 11, 1898" to "August 11, 1897", the problem will be corrected, and you would not object to the image being replaced in the articles? RCraig09 (talk) 07:31, 7 February 2026 (UTC)
The issue is that information within the image itself is incorrect. If you created the embedded 1898 date for the Felton speech?...perhaps. Maybe if you cite the various sources I mentioned above as the reason? Honestly, it's late here and I need to take a break. I'll try to take a look tomorrow...actually later today. Thanks. Shearonink (talk) 07:38, 7 February 2026 (UTC)
@Shearonink: I have changed the legend in the image, and uploaded it as Version 3 (18:50, 7 February 2026). Would you like to return the file to its previous two locations in En.Wikipedia? (I notice you've made other changes there.) RCraig09 (talk) 18:54, 7 February 2026 (UTC)
Should work. I might see what size of the image works best slotted-in with the text. Looks like the previous 2 (errant) Versions have been removed? Thanks, Shearonink (talk) 01:25, 8 February 2026 (UTC)
@Shearonink: Excellent. The previous two versions have been superseded, not really "removed". The old versions won't show up in Wikipedia articles. I assume you'll replace the two instances in en.WP (the new version is the same "shape" as the originals). RCraig09 (talk) 05:34, 8 February 2026 (UTC)
I started tinkering around with both articles and your newǃimprovedǃ image, I think I made the size a 250, instead of a 300. Thanks for correcting the year. Shearonink (talk) 06:02, 8 February 2026 (UTC)

Christian nationalism image

Hi RCraig09!

I don't know if you do requests, but would it be possible for an image based on the map presented in this Axios article that shows the prevalence of Christian nationalist beliefs within US states? I think this would be a great visual aid for the page on this topic. I'm not skilled enough with image editing to make this by myself! BootsED (talk) 13:59, 18 February 2026 (UTC)

@BootsED: I'm not an expert at map graphics, so I recommend you place a request at Graphic_Lab/Map_workshop. Best of luck. RCraig09 (talk) 15:46, 18 February 2026 (UTC)
@RCraig09 and @BootsED Would you like me to use RStudio to make graphs to help? I'm an expert at map graphics, as a statistician. JohnAdams1800 (talk) 23:53, 21 March 2026 (UTC)
I made this in less than 20 minutes. (I looked up the data, wrote the R code, and uploaded the outputted image.) I can make almost any kind of graph based on the data. For what it's worth, I think educational attainment and Christian nationalism are inversely correlated.
Christian Nationalism groups by state (2025) as a bar plot.
Link: https://prri.org/research/mapping-christian-nationalism-across-the-50-states-insights-from-prris-2025-american-values-atlas/ JohnAdams1800 (talk) 00:06, 22 March 2026 (UTC)
This is great! I forgot to make my request on the map workshop but this looks good as well. I think a map of the US would work visually better than a graph, but this can work for the time being if no one makes the map. BootsED (talk) 00:22, 22 March 2026 (UTC)
I can make other options too--just let me know what you like. It's tougher to color-code this by state, which can be done in RStudio, but it would take some time and trial-and-error. JohnAdams1800 (talk) 00:45, 22 March 2026 (UTC)

File:2017- Donald Trump veracity - composite graph.png

File:2017- Donald Trump veracity - composite graph.png has been nominated for deletion at

This is a deletion request for the community to discuss whether the nominated page should be kept or deleted. Please voice your opinion in the linked request above. Thank you very much!

If you created this file, please note that the fact that it has been proposed for deletion does not necessarily mean that we do not value your kind contribution. It simply means that one person believes that there is some specific problem with it, such as a copyright issue. Please see Commons:But it's my own work! for a guide on how to address these issues.

Please remember to respond to and if appropriate contradict the arguments supporting deletion. Arguments which focus on the nominator will not affect the result of the nomination. Thank you!

G77893137 (talk) 03:44, 25 February 2026 (UTC)

Result: Kept: no valid reason for deletion. --Kadı Message 23:00, 4 March 2026 (UTC)

JohnAdams1800 and (unintentional) proxying

JohnAdams1800 is a long-term sock editor on Wikipedia who has been permanently CBANned for repeated abuse of sock accounts and low quality original research. It appears he is trying to use you as a proxy here to sidestep his inability to edit Wikipedia. (ban, indef)

If he's using Commons to discuss content that should go on en-wiki (which he does in two of the above threads) then he's proxying. I think it's worth considering for you and @BootsED: that JohnAdams1800 has not historically been a reliable editor where there's a risk of OR and he shouldn't be actively contributing to Wikipedia using Commons as a staging ground to discuss his preferred en-wp edits. ~2026-18248-11 (talk) 20:51, 24 March 2026 (UTC)

Where is he using Commons to discuss edits on en-Wiki? BootsED (talk) 14:28, 26 March 2026 (UTC)
For the record: I don't know about JohnAdams1800' activities in general. Our discussions (above) didn't go far. RCraig09 (talk) 15:00, 26 March 2026 (UTC)
If JohnAdams1800 is using Commons pages to discuss the content of articles, which he obliquely is above, then he's proxying. The replies to him from you and RCraig09 discuss changes to en-wp, which he shouldn't really be engaging with as a banned user who publicly said something along the lines of "If you want to keep discussing things, hit me up on commons" on an en-wp sock account. ~2026-18248-11 (talk) 00:46, 3 April 2026 (UTC)
Category:Pages using multiple image with auto scaled images