So I have a large data-frame with usage for a mass subscribers, containing columns sub_type, minutes, SMS. Minutes and SMS are actual usage while sub_type is identifier for subscription, i.e. say we have four subscriptions, 1, 2, 3 and 4. How would i create a plot(minutes,sms) for each subscription.
> allsubs
> plot(allsubs$minutes, allsubs$sms)
this will plot all, regardless of subscription type. So i have solved this by making 4 diffrent dataframes, making 4 queries to database via R. There must be a easier way, that i havent stumbled upon yet. Please let me know if anyone has a tip/link on how to solve this.
Kind regards,