I am new to R and Stack Overflow, but I am creating a simple line graph, and want to play or change the line thickness and the transparency of the lines. I know they need to be within the () of aes argument in geom_line but instead of changing the line thickness and transparency, it just keeps showing up in the legend. It is clearly changing the size of the line, because if I delete the size and alpha argument, the graph changes. But if I just play around with the size= part, nothing happens.
occupy <- read.csv("BatBoxDescriptiveTablewOccupancy.csv",
stringsAsFactors = FALSE)
library(ggplot2)
library(dplyr)
occupied <- occupy[occupy$ï..UsedOrNo == 1 , ]
occupied %>%
ggplot() +
geom_line(aes(x=Date, y=Occupancy, size=1, alpha=0.05, group = Box.ID, color = Box.ID)) +
ggtitle("Bat Box Occupancy") +
theme_classic() +
scale_x_discrete(limits=c("2021-08-10","2021-08-12", "2021-08-15", "2021-08-17", "2021-08-19", "2021-08-21", "2021-08-23", "2021-08-25", "2021-08-26")) +
ylab("Number of Individual Bats in Box")
Thanks for the help!