Graphene as a tunable resistor