Method for changing screen in a user device terminal having pen

According to various embodiments of the present invention, a method includes an operation of displaying data on a display module of an electronic device; an operation of obtaining pen input through the electronic device; an operation of determining whether input corresponds to at least one among the expansion and reduction of the data or not based on the pen input; an operation of displaying a guide corresponding to the determination result; and an operation of expanding or reducing the data based on the pen input corresponding to the guide.