diff --git a/source/legislation/sec_leg-visualize.ptx b/source/legislation/sec_leg-visualize.ptx
index 85ae7400..0326a9b5 100644
--- a/source/legislation/sec_leg-visualize.ptx
+++ b/source/legislation/sec_leg-visualize.ptx
@@ -1,543 +1,51 @@
- In this section I will... A common claim in the news media, and a common feeling among transgender and nonbinary folks, is that 2023 is by far the worst recent year for anti-trans legislation. How do we explore if 2023 was the year of anti-trans legislation? This question is vague - what does an answer to this question mean? How do we use this information in our advocacy? In order to conduct research, we need to drill down into more specific questions that can be answered empirically. This is an important story that needs to be documented to mitigate and eventually prevent future cases of hate. We are trying to understand broader patterns to better understand where our advocacy work may make a difference.
- The targeting of the transgender community through legislation has been a significant topic in the news in 2023. We could compare the volume of news stories related to anti-trans legislation in 2023 to the volume in previous years. However, does this approach measure what we are looking for? Perhaps the same story is being repeated multiple times? A better approach is to look at the legislation itself. We can ask a similar question about the legislation. What - if anything - was different about the volume of anti-trans legislation in 2023 from the volume in previous years? This is another question we can investigate with data in order to tell this story. Let's take a look at the data we sourced and cleaned in the last section. Note, we include the cleaned version of the data in this section, so if you missed the prior section, or did not finish you can still explore in this section. Note that
- Where did the data come from? Assess the trustworthiness of the data and the sources.
- We described some of the variables that are in this dataset.
-
-
-
-
-
- Which variables in the dataset are quantitative and which are categorical? -
Sometimes variable values are directly observable. For example, if we wanted to make a dataset for the price of a specific product at three different stores, we can go to the stores and find those prices. Sometimes variable values are not directly observable. For example, the number of individuals in a location who have committed crimes.
-What research questions do you have after exploring the data set?
--We often start investigating our questions by exploring and becoming familiar with our data. One of the most powerful -ways to explore data (as well as to communicate with data) is through visualization through graphs and charts. -
- -- Before proceeding, be sure to run this code cell that reads in the data file. -
- --
Let's generate a graph showing how many bills there are with each status. - To generate a graph, replace the [INSERT_GRAPH_TYPE] with one of the following in the code cell below:
-
- A bar graph:
- A histogram:
- A boxplot:
- A line graph:
- A pie graph: This is the Nickelback of charts (see https://www.businessinsider.com/pie-charts-are-the-worst-2013-6) -
-
- A scatterplot:
- Try to create each type of graph in R. Some will cause errors - that is a sign that this type of graph isn’t appropriate for this question. - Which graph do you think is the clearest? Why do you think that is? - What do you notice from this graph? Does this tell you anything about our question regarding 2023? -
-Now let us look at what is happening by year. Run the following code cell to group the data by year. -
-For the following two pieces of data, generate each type of graph and answer the same questions from above: Which graph do you think is the clearest? Why do you think that is? - What do you notice from this graph? Does this tell you anything about our question regarding 2023? -
-- The total number of bills proposed between 2018 and 2023. -
-- The bills signed and enacted between 2018 and 2023. -
-Let us look back at our work and see if we can draw some conclusions, both about data visualization and about our story regarding anti-trans legislation in 2023. -
There is a difference between a count and a proportion. A count value tells you the raw number of times something occurs, whereas a proportion tells you the percentage of the total times something occurs. Whenever dealing with proportions, you have to think carefully about the denominator! -
--Both quantitative and qualitative data can be analyzed under two types, categorical and numerical. Categorical data allows us to organize the data into sections or groupings that have similar characteristics. Numerical data often allows us to draw comparisons between the data and analyze trends, relationships, outliers, and other statistical qualifiers. Within the classification of numerical data, we have more descriptive graphs that can be used (scatter plot, line graph, bar graph, etc.) -
- -- Often we want to compare one variable against another to see how they might be associated. So it's worthwhile to imagine how we'd plot two variables on a single graph. Let's explore some of those graph types here. - -
- -
- A scatterplot:
- A stacked bar graph:
- A stacked bar graph with proportions:
- A dodge bar graph:
- A dodge bar graph with proportios:
- A boxplot:
- Try to create each type of graph in R. Some will cause errors - that is a sign that this type of graph isn’t appropriate for this question. - Which graph do you think is the clearest? Why do you think that is? - What do you notice from this graph? Does this tell you anything about our question regarding 2023? Do these graphs prompt any new questions? -
- --In the above activity we had bar graphs that allows us to compare the numerical data of a particular variable (total number of passed bills from 2018 to 2023) with the total number of introduced bills within this same time period or the total number of bills that crossed over again during the same time period. Using these graphs we can explore a relationship between the proportions of bills which are crossed over or passed within each year as well as the trend over time as to what proportions are crossed over or passed. These bar graphs are sometimes referred to as multigraphs. -
- - - - -
- In the above activity we created similar graphs by focusing on the frequency or count of a
- Try to create each type of graph in R. Some will cause errors - that is a sign that this type of graph isn’t appropriate for this question. - Which graph do you think is the clearest? Why do you think that is? - What do you notice from this graph? Does this tell you anything about our question regarding 2023? -
- --
CODEGOESHERE for proportion vs. count graph for types of anti-trans bills proposed in 2023 compared to previous years to showcase if absolute or relative frequency is best to be used in this way. Want 4 graphs, 2 graphs are rate vs count of types of bills. The second two graphs are rate vs count of passed bills. -
- -- In the code below, you can change the variables by replacing "INSERT_Variable" with your variable that you want to explore. -
-- - - -
We began this chapter with the question of how 2023 is different from other years in regards to anti-trans legislation. Section 2 introduced us to different visualizations that can help us explore this and evaluate this question. -
- - - --Figure NUM is a line graph that plots raw numbers of bills introduced in each year from 2018-2023. We can see that the number of bills is increasing each year, but the numbers increased more quickly in 2021 and 2023 than in other years. -
- --What feature of the line graph demonstrates this increase? -
-We might want to know what prompted these increases to happen, and knowing which types of bills were being proposed during those years might provide insight. Below is a line graph showing just one type of bill. By changing VARIABLE to other types (list), you can generate different graphs. -
- -
-
-
Our analysis has so far been focused on bills that were introduced. -
-Our previous visualizations showed that 2023 did have a significant increase in the number of anti-trans bills that were both introduced and passed. In addition to the absolute frequency counts of bills that have passed, we might also be interested in the relative proportion of bills that have been passed–that is, are legislators who are targeting transgender people becoming more successful in their efforts? -
- --SOME KIND OF VISUALIZATION OF "SUCCESS" RATE OVER TIME GOES HERE -
- -SUMMARIZE THE STORY HERE -
- -In this section I will...
+
+ There has been a dramatic rise in anti transgender legislation being proposed and being passed across the US. These bills have very real and horrible effects on people’s lives. How do we conceptualize how overwhelming these numbers are? How do we make sure that we are still humanizing the data as we work with it? Youtuber Lindsay Ellis refers to this as the vulgarity of numbers in her video essay
+ There are many ways people choose to represent data. We use visuals to quickly communicate ideas to others. From bargraphs and tables, scatterplots, maps, to infographics and more we can tell a story about a population or problem. +
+ In this activity, we will consider data on bills that impact transgender and gender-diverse people across the United States from
Begin by going to the Trans Legislation Tracker above.
+Many places document data about anti-transgender legislation that are introduced, however the questions they ask differ. In this section, we will explore what stories are highlighted through different datasets.
+ In this activity we'll use data sets created by the ACLU to help us see what questions we wondered in the preactivity we can answer as well as become comfortable with exploring data sets using spreadsheets. The ACLU (American Civil Liberties Union) has tracked anti-LGBTQ bills in the U.S. State Legislature in years
-Given our questions this means the variables and levels were are interested in are the bills passed, crossed over (hence passed by at least one chamber of the legislature and not yet dead), and/or signed and enacted between 2021 and 2023, as well as in each year and in the years preceding 2023. -
- -
-As you explored in the activity part 1, these bills
Our first visualizations give information about the count of these bills, but let us talk about the likelihood of any particular anti-trans bill to pass in 2023 compared to previous years. We saw in graph blah that there appears to be a slight increase in the proportion of bills of all types that passed in 2023 compared to 2018-22. -
- --This final image doesn't demonstrate an obvious finding, but does motivate another question. Is the difference we are seeing between the two groups significant? What can we infer if we had more refined tools like statistical tests (chi squared, ANOVA, prop test, etc). Or we can refine our questions further, for example, what changes in voter districts, voter laws, or state congress and senate makeup has changed from 2022 to 2023? -
- -- stuffstuff -
--Tell a story about the data -What information contributes to answering our research question? -What information does not? -What limitations are there when working with this data? -
- - - - -In section 1, you wrote ideas about research questions you wanted to explore given this data set. Using the tools we have learned in this section, which questions do you think could be explored and potentially answered? Why you think so? Which graphs would you utilize to explore the data?
-In Section 2, you learned how to read visualizations and how to modify code to create them. Using a question from exercise 1, create graphs that you feel would best help you answer your question. Explain what each graph represents, and what you are noticing in those graphs.
- -In Section 3, we learned how to synthesize exploratory data visualizations and tell a story with our data. Based on the graphs you created in the prior exercise, tell a story with your data. What actions do you want your data to lead to and how are you using the data to tell that story?
- -Now, let's put everything together and refer to the following figure and answer the following questions.
-
For more information on creating grouped and stacked bar plots in R, check out the tutorials in