## Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
## ℹ Please use `linewidth` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.

## Rows: 2317 Columns: 40
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr  (3): State_Name, Constituency_Name, contest_type.x
## dbl (37): Constituency_No, VS_2009, turnout_2009, Electors_2009, VS_2014, tu...
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.

## 
## Summary Statistics:
## Turnout Change Range: -59.59 to 59.79 %
## Number of observations: 3518
## Correlation coefficient: -0.079
## R-squared: 0.006
## `geom_smooth()` using formula = 'y ~ x'

## Warning: There were 5 warnings in `summarise()`.
## The first warning was:
## ℹ In argument: `total_valid_votes_raw = max(Valid_Votes_num, na.rm = TRUE)`.
## ℹ In group 1902: `State_Name = "Gujarat"`, `Constituency_No = 24`,
##   `Constituency_Name = "SURAT"`, `Year = 2024`.
## Caused by warning in `max()`:
## ! no non-missing arguments to max; returning -Inf
## ℹ Run `dplyr::last_dplyr_warnings()` to see the 4 remaining warnings.
## Constituencies with both years (1980 & 2004): 376
## 
## INC Vote Share Difference (2004 - 1980) on Electorate Change
## ===============================================================
##                                 Dependent variable:            
##                     -------------------------------------------
##                      Vote Share Difference (2004 - 1980, INC)  
##                            No FE                With FE        
##                             (1)                   (2)          
## ---------------------------------------------------------------
## Electorate % Change        0.015                -0.043         
##                           (0.034)               (0.035)        
## Constant                -17.508***               9.066         
##                           (3.041)              (21.825)        
## ---------------------------------------------------------------
## Observations                376                   376          
## R2                         0.001                 0.319         
## Adjusted R2               -0.002                 0.262         
## Residual Std. Error  24.668 (df = 374)     21.174 (df = 346)   
## F Statistic         0.201 (df = 1; 374) 5.583*** (df = 29; 346)
## ===============================================================
## Note:                               *p<0.1; **p<0.05; ***p<0.01
## 
## INC Vote Share Difference (2004 - 1980) on Electorate Change
## ========
## Constant
## --------
## 
## INC Vote Share Difference (2004 - 1980) on Turnout Change
## ===============================================================
##                                 Dependent variable:            
##                     -------------------------------------------
##                      Vote Share Difference (2004 - 1980, INC)  
##                            No FE                With FE        
##                             (1)                   (2)          
## ---------------------------------------------------------------
## Turnout Change (pp)       -0.156                -0.158         
##                           (0.109)               (0.156)        
## Constant                -15.675***              -0.438         
##                           (1.335)              (21.383)        
## ---------------------------------------------------------------
## Observations                376                   376          
## R2                         0.005                 0.318         
## Adjusted R2                0.003                 0.261         
## Residual Std. Error  24.607 (df = 374)     21.190 (df = 346)   
## F Statistic         2.066 (df = 1; 374) 5.557*** (df = 29; 346)
## ===============================================================
## Note:                               *p<0.1; **p<0.05; ***p<0.01
## 
## INC Vote Share Difference (2004 - 1980) on Turnout Change
## ========
## Constant
## --------
## Warning: `aes_string()` was deprecated in ggplot2 3.0.0.
## ℹ Please use tidy evaluation idioms with `aes()`.
## ℹ See also `vignette("ggplot2-in-packages")` for more information.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.

## Saved plot to: inc_elec_change_plot.png

## Saved plot to: inc_turnout_change_plot.png
## 
## VoteShareDiff on Electorate % Change
## =================================================================
##                                  Dependent variable:             
##                     ---------------------------------------------
##                                 Vote Share Difference            
##                            No FE                 With FE         
##                             (1)                    (2)           
## -----------------------------------------------------------------
## Electorate % Change        0.027*                 -0.014         
##                           (0.015)                (0.012)         
## Constant                 13.133***              19.534***        
##                           (1.420)                (5.782)         
## -----------------------------------------------------------------
## Observations                821                    821           
## R2                         0.004                  0.548          
## Adjusted R2                0.003                  0.531          
## Residual Std. Error  15.707 (df = 819)      10.772 (df = 791)    
## F Statistic         3.311* (df = 1; 819) 33.017*** (df = 29; 791)
## =================================================================
## Note:                                 *p<0.1; **p<0.05; ***p<0.01
## 
## VoteShareDiff on Electorate % Change
## ========
## Constant
## --------
## 
## VoteShareDiff on Turnout Change
## ====================================================================
##                                   Dependent variable:               
##                     ------------------------------------------------
##                                  Vote Share Difference              
##                              No FE                  With FE         
##                               (1)                     (2)           
## --------------------------------------------------------------------
## Turnout Change             -0.388***                 0.017          
##                             (0.046)                 (0.052)         
## Constant                   16.819***               17.369***        
##                             (0.548)                 (5.459)         
## --------------------------------------------------------------------
## Observations                  821                     821           
## R2                           0.081                   0.547          
## Adjusted R2                  0.080                   0.530          
## Residual Std. Error    15.086 (df = 819)       10.780 (df = 791)    
## F Statistic         72.492*** (df = 1; 819) 32.922*** (df = 29; 791)
## ====================================================================
## Note:                                    *p<0.1; **p<0.05; ***p<0.01
## 
## VoteShareDiff on Turnout Change
## ========
## Constant
## --------

## Rows: 2317 Columns: 40
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr  (3): State_Name, Constituency_Name, contest_type.x
## dbl (37): Constituency_No, VS_2009, turnout_2009, Electors_2009, VS_2014, tu...
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.

## Rows: 2317 Columns: 40
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr  (3): State_Name, Constituency_Name, contest_type.x
## dbl (37): Constituency_No, VS_2009, turnout_2009, Electors_2009, VS_2014, tu...
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.

## Rows: 2317 Columns: 51
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr  (3): State_Name, Constituency_Name, contest_type.x
## dbl (48): Constituency_No, VS_2009, turnout_2009, Electors_2009, VS_2014, tu...
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.

## Rows: 2317 Columns: 51
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr  (3): State_Name, Constituency_Name, contest_type.x
## dbl (48): Constituency_No, VS_2009, turnout_2009, Electors_2009, VS_2014, tu...
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.

## Warning: There was 1 warning in `summarise()`.
## ℹ In argument: `Max_Votes = max(Votes, na.rm = TRUE)`.
## ℹ In group 4952: `Year = 2024`, `State_Name = "Gujarat"`, `PC_Name = "Surat"`.
## Caused by warning in `max()`:
## ! no non-missing arguments to max; returning -Inf
## Warning: Removed 3 rows containing missing values or values outside the scale range
## (`geom_point()`).

## Warning: There was 1 warning in `summarise()`.
## ℹ In argument: `Max_Votes = max(Votes, na.rm = TRUE)`.
## ℹ In group 4952: `Year = 2024`, `State_Name = "Gujarat"`, `PC_Name = "Surat"`.
## Caused by warning in `max()`:
## ! no non-missing arguments to max; returning -Inf
## Warning: Removed 9 rows containing missing values or values outside the scale range
## (`geom_point()`).
## Warning: Removed 28 rows containing missing values or values outside the scale range
## (`geom_line()`).

## Warning: There was 1 warning in `summarise()`.
## ℹ In argument: `Max_Votes = max(Votes, na.rm = TRUE)`.
## ℹ In group 4952: `Year = 2024`, `State_Name = "Gujarat"`, `PC_Name = "Surat"`.
## Caused by warning in `max()`:
## ! no non-missing arguments to max; returning -Inf

## Warning: There was 1 warning in `summarise()`.
## ℹ In argument: `Max_Votes = max(Votes, na.rm = TRUE)`.
## ℹ In group 4952: `Year = 2024`, `State_Name = "Gujarat"`, `PC_Name = "Surat"`.
## Caused by warning in `max()`:
## ! no non-missing arguments to max; returning -Inf
## Warning: Removed 4 rows containing missing values or values outside the scale range
## (`geom_point()`).