Trying to learn how to plot using this data set
CHN_NAME LOC_NAME HIST_DATE LATENCY_HRS
1 cp_cust tngpp 4/22/2020 1.02
2 cp_geam tngpp 4/22/2020 1.33
3 cp_wip tngpp 4/22/2020 5.25
4 cp_xla_ods tncpp 4/22/2020 1.09
5 hvr_job_c002 tntap 4/22/2020 1.04
6 khw_fin_c4 tngpp 4/22/2020 5.94
this works fine
plot(data$LATENCY_HRS,
main = "Latency Times",
xlab = "ytd",
ylab = "Time")
now trying to add variable to only plot data based on a specific loc_name such as
with 'data$LOC_NAME==("tngpp")',
scatter.smooth(x=data$LATENCY_HRS,
main="target ~ Latency")
and keep hitting a roadblock .. simply want to only ploy latency_hrs based on a specific loc_name
Regards
Tom
FYI I am a complete new r user and any help is appreciated