Top graph: voltage drop across the resistor vs. time
Bottom graph: current through resistor vs. time
This is a resistor charging a capacitor.
If the cap is being charged and discharged 2 times a second, what is the power rating I need my resistor to be? Of course, I want it to be as low as possible because of size.