Color coding lines on a chart based

catandhorse1976

New Member
Joined
Jun 27, 2012
Messages
14
Hello,

I have data on over 65 patients collected at over 7 time points during hospitalisation. For each patient I also have the occurrence 10 types of complication recorded.

The data are coded, 0= complication did not occur and 1= complication did occur, but for some complications there are no data for some patients - for example when the patient did not leave hospital.

I have plotted the data for all patients (see image attached). But I want to create a separate chart for each complication whereby affected patients can be distinguished from non-affected, for example, by making the data points for affected patients large X or squares and their lines thicker or dashed. The chart colors and lines for non-affected patients can remain the default.

Thank you.




PCT-SAA-HorseTrust-Update-2023-03-10.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBL
1HorseIDPCT-1(ColicSx)PCT-7(PTSTable)PCT-8(ColicSx)PCT-9(ColicSx)PCT-10(ColicSx)PCT-11(ColicSx)PCT-13(PTS-Table)PCT-14(PTS-Hosp)PCT-15(PTS-Table)PCT-16(ColicSx) PCT-17(ColicSx) PCT-18(ColicSx) PCT-2(ColicSx)PCT-20(ColicSx)PCT-21(Caesar-LaterPTS-Table)PCT-22(ColicSx) PCT-23(Caesar)PCT-24(Caesar)PCT-25(Caesar)PCT-26(ColicSx)PCT-28(PTSRecovery#)PCT-29(ColicSx)PCT-3(ColicSx)PCT-30(ColicSx)PCT-31(ColicSx)PCT-32(ColicSx)PCT-33(ColicSx)PCT-34(ColicSx)PCT-35(Caesar)PCT-36(InfHematoma)PCT-37(UterusTear)PCT-38(ColicSx-PTS-Recovery) PCT-39(ColicSx)PCT-4(ColicSx)PCT-40(ColicSx)PCT-41(ColicSx)PCT-42(ColicSx)PCT-43(ColicSx)PCT-44 (ColicSx)PCT-45(ColicSx)PCT-46(ColicSx)PCT-47(ColicSx)PCT-48(ColicSx)PCT-49(ColicSx)PCT-5(ColicSx)PCT-5(ColicSx)PCT-50(ColicSx)PCT-51(ColicSx)PCT-52(ColicSx)PCT-53(ColicSx)PCT-54()PCT-55(ColicSx)PCT-56(ColicSx)PCT-57(PTS-DayPostSx)PCT-58 (PTS-Table)PCT-59PCT-6(ColicSx)PCT-60( Colic)PCT-61(CoilcSx) PCT-62(ColicSx)PCT-63(ColicSx)PCT-64(ColicSx)PCT-65(ColicSx)
2SAA-D0 Day of Sx (in most cases = day of admit)0.770.20.12.9031.635.2192.200.30.80.14.70.500.30.1A0896.401.200.5355.650.7134.50.20.1000.10.6551.80.90.754.554.500.30.70122.800.500010
3SAA-D11136819.347583.144003648512.2268574.4 442.3163983.5480.5504.2166
4SAA-D2365.9394.8404.7406.6382.5374.5391.4518.2424.8336460494.954165013772.69308539001041841325.7289.7323.1320292.3320.7307376.9282.1391.3310.9310.9379.9363.5306.7252.3403.1359.53901407
5SAA-D3365390.13625461126642307.1264.5319488.73507
6SAA-D4354.8395.2360.2446.9338.6280.3383.6325.5429.8395.1502405537158.8155.9222871239003118514138327.4263365.2279.8278.8392.2267.7285.3457.7393481.7436.6436.6313.5 410499.21168416.2407.362450
7SAA-D514631366151.7417.5351.1549.420134817282.6332.3428.4402.6405.2467.2
8SAA-D6121.946.1319.6982412.7590.6378.94706503879613272.11209313.2358.4220380.4317.1428.325525537.7 530497.1518.70
9SAA-D7285.5313.4529328.4319.3201.3526.1563532.9
10IncisionalInf Hosp I(Hosp)0000000000000000100000000000000 000000001000PTS Table0000000000
11New InisionalINFAfterDischarge I(Home)01100100000000000000000Unknown10010 000000000000PTS Table00Unknown00000
12CatheterAssocComplic in Hosp C(Hosp)0000000000000000100000001000010 000000000000PTS Table0000000000
13NEW CatheterAssocComplic C(Home))00000000000000000000000Unknown00000 001000000000PTS Table000Unknown00000
14AnyCatheter Assoc Complic = Hosp or Home C(HospOrHome)0000000000000000100000001000010 001000000000PTS Table000Unknown00000
15Other Infections Hosp or Home excl incision or Cath (see notes on Complications)000000000000000010010000Uknown000010 00000000000PTS Table000Unknown00000
16Any NEW Inf (Incision or Catheter or Other)01100100000000000000000Unknown10010 001000000000PTS Table00 Unknown00000
17AnyInfection = in HOSP (Incision or Catheter or Other)0000000000000000100100001000010 000000001000PTS Table0000000000
18AnyInfection = Hosp or Home, Incision or Catheter or Other0110001000000000100100001100110 001000001000PTS Table000Unknown00000
19SIRS in Hosp0000010000000100100100 0Unknown1Limited data recorded00100 100100110110PTS Table0010101000
20Non-survival to hospital discharge - first admission (1= non survival; 0=survival)01000011000001000001000000000100000100000000000100110000000
21ANY Complic = I OR C OR R OR D OR Colic OR SIRS OR Death Hosp or Home1111001111000010010011001101011100110100110011111010011Unknown10100
(1b)SAA Plot
 

Attachments

  • Picture4.jpg
    Picture4.jpg
    181.3 KB · Views: 7

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top